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=17af85f5-fd01-4f7e-bd11-b264bb1b9bda
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 |
|
|
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: 17af85f5-fd01-4f7e-bd11-b264bb1b9bda
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. |
|
|
|
serivce_label | The name of the service. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMyIsImVtYWlsIjoiZW1haWwtMTU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDd9.K9T7S2LDFCD9c8v7who_CxGnW7HG3WEMsLj4RlUNTtU Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_usage_events?results-per-page=1&after_guid=17af85f5-fd01-4f7e-bd11-b264bb1b9bda" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMyIsImVtYWlsIjoiZW1haWwtMTU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDd9.K9T7S2LDFCD9c8v7who_CxGnW7HG3WEMsLj4RlUNTtU" \ -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=17af85f5-fd01-4f7e-bd11-b264bb1b9bda&order-direction=asc&page=2&results-per-page=1", "resources": [ { "metadata": { "guid": "4a96a541-2e03-4cc7-b653-954323f0369c", "url": "/v2/service_usage_events/4a96a541-2e03-4cc7-b653-954323f0369c", "created_at": "2015-03-10T23:11:47Z" }, "entity": { "state": "CREATED", "org_guid": "guid-13337819-11f6-402a-bd34-964eef5606a8", "space_guid": "guid-d8ae418d-d735-4e9c-a39b-054772071098", "space_name": "name-623", "service_instance_guid": "guid-2ae515c4-5838-4f30-a2e5-fce3329ff542", "service_instance_name": "name-624", "service_instance_type": "type-5", "service_plan_guid": "guid-044e5660-b020-4cd1-946f-95233f701d8b", "service_plan_name": "name-625", "service_guid": "guid-6f69a589-75ff-41cf-b7e9-b83f4313f587", "service_label": "label-18" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 45219a20-0e9c-4eff-87f6-8c66aada7de8 Content-Length: 1050 X-Content-Type-Options: nosniff