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=44d78dfb-679a-420e-8b33-34f576b33d69


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
results-per-page: 1
after_guid: 44d78dfb-679a-420e-8b33-34f576b33d69


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.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNyIsImVtYWlsIjoiZW1haWwtMjY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDV9.mFd-cGOL7GVJbAqQ4taST-yf1QNuNM2S1EA8Eb60BVg
Host: example.org


curl "https://api.[your-domain.com]/v2/service_usage_events?results-per-page=1&after_guid=44d78dfb-679a-420e-8b33-34f576b33d69" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNyIsImVtYWlsIjoiZW1haWwtMjY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDV9.mFd-cGOL7GVJbAqQ4taST-yf1QNuNM2S1EA8Eb60BVg" \
	-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=44d78dfb-679a-420e-8b33-34f576b33d69&order-direction=asc&page=2&results-per-page=1",
  "resources": [
      "metadata": {
        "guid": "e01c007c-b549-4888-99f7-e521777765d5",
        "url": "/v2/service_usage_events/e01c007c-b549-4888-99f7-e521777765d5",
        "created_at": "2015-05-07T23:37:25Z"
      "entity": {
        "state": "CREATED",
        "org_guid": "guid-ce264d96-5cc1-4c3d-9553-9ae57cf0cd62",
        "space_guid": "guid-1303f9e5-be17-42fa-9279-02215657285b",
        "space_name": "name-2039",
        "service_instance_guid": "guid-edafd293-601b-42fd-a01f-318ff0a423cd",
        "service_instance_name": "name-2040",
        "service_instance_type": "type-2",
        "service_plan_guid": "guid-289790cd-206d-4565-9a88-a4613be98e49",
        "service_plan_name": "name-2041",
        "service_guid": "guid-996770a7-6d6a-4e30-ab3d-46229305748b",
        "service_label": "label-83"


Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bd66d036-892e-4d8c-92d7-896339cbdec8
Content-Length: 1053
X-Content-Type-Options: nosniff