Version 3
Service Usage Events API

Service Usage Events 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.



GET /v2/service_usage_events?results-per-page=1&after_guid=b67a923f-9c3a-4884-a961-9a3a450cefec


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
  • 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
results-per-page: 1
after_guid: b67a923f-9c3a-4884-a961-9a3a450cefec


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.


Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC04MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ5fQ.vbqyMgLrazPyGoJvTFG-e7aJ_HqvOLePBEhu_Ufs8LU
Host: example.org


curl "https://api.[your-domain.com]/v2/service_usage_events?results-per-page=1&after_guid=b67a923f-9c3a-4884-a961-9a3a450cefec" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC04MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ5fQ.vbqyMgLrazPyGoJvTFG-e7aJ_HqvOLePBEhu_Ufs8LU" \
	-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=b67a923f-9c3a-4884-a961-9a3a450cefec&order-direction=asc&page=2&results-per-page=1",
  "resources": [
      "metadata": {
        "guid": "8a9e1d48-a9f5-43c8-8e58-15d938c19483",
        "url": "/v2/service_usage_events/8a9e1d48-a9f5-43c8-8e58-15d938c19483",
        "created_at": "2015-06-16T23:40:49Z"
      "entity": {
        "state": "CREATED",
        "org_guid": "guid-0db76795-52b2-43d3-a252-8ac26b3efa0b",
        "space_guid": "guid-3659f35d-a836-4c7d-80bc-e0924edb2f4a",
        "space_name": "name-481",
        "service_instance_guid": "guid-69b0d8c1-9f1c-45b3-b2f1-99981bcb9fda",
        "service_instance_name": "name-482",
        "service_instance_type": "type-8",
        "service_plan_guid": "guid-46b61809-99fe-4ad6-8b6a-c585e75179d4",
        "service_plan_name": "name-483",
        "service_guid": "guid-2ce30871-47e1-4e95-8551-4586515f09e6",
        "service_label": "label-36"


Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bf48a93d-af7d-442d-a8f2-65bbe659c114
Content-Length: 1050
X-Content-Type-Options: nosniff