Events are sorted by internal database IDs. This order may differ from created_at. Events close to the current time should not be processed because other events may still have open transactions that will change their order in the results.
GET /v2/service_usage_events?results-per-page=1&after_guid=bbf5156e-e376-4bb2-8708-cc9a5ab9c4c6
Name | Description | Valid Values | Example Values |
---|---|---|---|
q |
Parameters used to filter the result set. Format queries as <filter><op><value> Valid ops: : >= <= < > IN Valid filters: service_instance_type, service_guid |
|
|
page | Page of results to fetch |
|
|
results-per-page | Number of results per page |
|
|
order-direction | Order of the results: asc (default) or desc |
|
|
inline-relations-depth | 0 - don't inline any relations and return URLs. Otherwise, inline to depth N. |
|
|
orphan-relations | 0 - de-duplicate object entries in response |
|
|
exclude-relations | comma-delimited list of relations to drop from response |
|
|
include-relations | comma-delimited list of the only relations to include in response |
|
|
after_guid | Restrict results to Service Usage Events after the one with the given guid |
|
|
results-per-page: 1 after_guid: bbf5156e-e376-4bb2-8708-cc9a5ab9c4c6
Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
guid | The guid of the event. |
|
|
|
state | The desired state of the service. |
|
|
|
org_guid | The GUID of the organization. |
|
|
|
space_guid | The GUID of the space. |
|
|
|
space_name | The name of the space. |
|
|
|
service_instance_guid | The GUID of the service instance. |
|
|
|
service_instance_name | The name of the service instance. |
|
|
|
service_instance_type | The type of the service instance. |
|
|
|
service_plan_guid | The GUID for the service plan. |
|
|
|
service_plan_name | The name for the service plan. |
|
|
|
service_guid | The GUID of the service. |
|
|
|
created_at | The timestamp of the event creation. |
|
|
|
service_label | The name of the service. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NiIsImVtYWlsIjoiZW1haWwtMjY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTh9.ONea6P10tctKFYRjap57fAeday7X0Y0o3Rjz_hFkNbo Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_usage_events?results-per-page=1&after_guid=bbf5156e-e376-4bb2-8708-cc9a5ab9c4c6" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NiIsImVtYWlsIjoiZW1haWwtMjY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTh9.ONea6P10tctKFYRjap57fAeday7X0Y0o3Rjz_hFkNbo" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 2, "total_pages": 2, "prev_url": null, "next_url": "/v2/service_usage_events?after_guid=bbf5156e-e376-4bb2-8708-cc9a5ab9c4c6&order-direction=asc&page=2&results-per-page=1", "resources": [ { "metadata": { "guid": "772f490e-6b26-42b6-aba5-713ae9fd0929", "url": "/v2/service_usage_events/772f490e-6b26-42b6-aba5-713ae9fd0929", "created_at": "2015-10-13T17:31:58Z" }, "entity": { "state": "CREATED", "org_guid": "guid-9e787550-0e94-4a92-bba5-159aabc5e70f", "space_guid": "guid-1668f09c-d6df-479d-9c10-9511f68c2d90", "space_name": "name-1318", "service_instance_guid": "guid-5e829242-7bd6-4074-962e-7e5592185b7c", "service_instance_name": "name-1319", "service_instance_type": "type-8", "service_plan_guid": "guid-22d00738-af1a-43e2-8be7-275e35c0debb", "service_plan_name": "name-1320", "service_guid": "guid-b1cfaf81-1fc5-4061-a03d-568c201cb437", "service_label": "label-49" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: a01f078c-13d4-47f9-ac87-e8d6289acb4f Content-Length: 1053 X-Content-Type-Options: nosniff