Version 3
Events API

Events API

List Service Key Create Events

GET /v2/events



GET /v2/events?q=type:audit.service_key.create


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: timestamp, type, actee, space_guid, organization_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
order-by Attribute to order results by
  • timestamp
  • id
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
q: type:audit.service_key.create


Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0zN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODg0fQ.U3s2FKxUdZmTHj1KOX4inTwWUsj85F8yX6zlBoR3LTc
Host: example.org


curl "https://api.[your-domain.com]/v2/events?q=type:audit.service_key.create" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0zN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODg0fQ.U3s2FKxUdZmTHj1KOX4inTwWUsj85F8yX6zlBoR3LTc" \
	-H "Host: example.org" \
	-H "Cookie: "



200 OK


Name Description Valid Values Example Values
guid The guid of the event.
type The type of the event.
  • audit.service_key.create
  • audit.service_key.create
actor The GUID of the actor.
actor_type The actor type.
  • service_broker
  • system
  • user
  • v3-process
actor_name The name of the actor.
actee The GUID of the actee.
actee_type The actee type.
  • app
  • route
  • service
  • service_binding
  • service_broker
  • service_dashboard_client
  • service_instance
  • service_key
  • service_plan
  • service_plan_visibility
  • space
  • user_provided_service_instance
  • v3-app (experimental)
  • v3-service-binding (experimental)
actee_name The name of the actee.
timestamp The event creation time.
metadata The additional information about event.
space_guid The guid of the associated space.
organization_guid The guid of the associated organization.
  "total_results": 1,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
      "metadata": {
        "guid": "e154abc1-086d-4d0e-a64b-ef4e04fabfdf",
        "url": "/v2/events/e154abc1-086d-4d0e-a64b-ef4e04fabfdf",
        "created_at": "2016-06-08T16:41:24Z",
        "updated_at": "2016-06-08T16:41:26Z"
      "entity": {
        "type": "audit.service_key.create",
        "actor": "uaa-id-46",
        "actor_type": "user",
        "actor_name": "user@example.com",
        "actee": "c2140919-e32c-4dbd-b4a8-bcf0bd8a285c",
        "actee_type": "service_key",
        "actee_name": "name-358",
        "timestamp": "2016-06-08T16:41:24Z",
        "metadata": {
          "request": {
            "service_instance_guid": "2832fdd8-6048-4229-b7da-d9491ced2089",
            "name": "name-358"
        "space_guid": "741cbd29-0ce6-44d3-b00d-7a6597e3c9c0",
        "organization_guid": "25d32229-4482-4480-b41f-d6e9f8d4ca18"


Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9da00b96-78a0-41ea-b0aa-db3c489fc40b
Content-Length: 993
X-Content-Type-Options: nosniff