Version 3
Service Usage Events (experimental) API

Service Usage Events (experimental) API

List Service Usage Events

GET /v2/service_usage_events

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.


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.
  • managed_service_instance
  • user_provided_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.


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
  • q=filter:value
  • q=filter>value
  • q=filter IN a,b,c
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



Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MCIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMjh9.He2HqzdMT6TtufjJ4BB0U638nZwt58eoIXQo2wtQHpg
Host: example.org


GET /v2/service_usage_events?results-per-page=1&after_guid=c3bc6945-e6fe-4ba9-84db-35d75c09a603

Query Parameters

results-per-page: 1
after_guid: c3bc6945-e6fe-4ba9-84db-35d75c09a603


curl "https://api.[your-domain.com]/v2/service_usage_events?results-per-page=1&after_guid=c3bc6945-e6fe-4ba9-84db-35d75c09a603" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MCIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMjh9.He2HqzdMT6TtufjJ4BB0U638nZwt58eoIXQo2wtQHpg" \
	-H "Host: example.org" \
	-H "Cookie: "



Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7e0d9b2f-bf59-40b5-b964-5cd6178cb240
Content-Length: 1050
X-Content-Type-Options: nosniff


200 OK


  "total_results": 2,
  "total_pages": 2,
  "prev_url": null,
  "next_url": "/v2/service_usage_events?after_guid=c3bc6945-e6fe-4ba9-84db-35d75c09a603&order-direction=asc&page=2&results-per-page=1",
  "resources": [
      "metadata": {
        "guid": "aa47f60f-19d9-4c61-9f65-7e53f28faef2",
        "url": "/v2/service_usage_events/aa47f60f-19d9-4c61-9f65-7e53f28faef2",
        "created_at": "2015-02-12T01:42:07Z"
      "entity": {
        "state": "CREATED",
        "org_guid": "guid-f21c0726-707a-4f86-95c1-b9751b34259b",
        "space_guid": "guid-68056efe-e605-40a2-a5c5-a4c8da3d138d",
        "space_name": "name-479",
        "service_instance_guid": "guid-8a1795c0-875c-450c-9258-b1d0e2f147a1",
        "service_instance_name": "name-480",
        "service_instance_type": "type-5",
        "service_plan_guid": "guid-19bc984f-6222-4e19-b232-390e787c63e2",
        "service_plan_name": "name-481",
        "service_guid": "guid-3ba3b13d-e437-49c8-8cc4-a1edc54b41d7",
        "service_label": "label-48"