Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
guid | The guid of the event. |
|
|
|
type | The type of the event. |
|
|
|
actor | The GUID of the actor. |
|
|
|
actor_type | The actor type. |
|
|
|
actor_name | The name of the actor. |
|
|
|
actee | The GUID of the actee. |
|
|
|
actee_type | The actee type. |
|
|
|
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. |
|
|
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 |
|
|
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. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNTc1NDEzNX0.W6ehP8VRPHgbJOedLkGNArW8A_WEv2WNm7yfam1jpeM Host: example.org Cookie:
GET /v2/events?q=type:audit.app.update
q: type:audit.app.update
curl "https://api.[your-domain.com]/v2/events?q=type:audit.app.update" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNTc1NDEzNX0.W6ehP8VRPHgbJOedLkGNArW8A_WEv2WNm7yfam1jpeM" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: bb0bf90f-2af1-4956-8609-f8eefba41d25 Content-Length: 1045 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "783409f0-6bd1-403d-bebd-71e8623d88eb", "url": "/v2/events/783409f0-6bd1-403d-bebd-71e8623d88eb", "created_at": "2014-11-05T01:02:15+00:00", "updated_at": null }, "entity": { "type": "audit.app.update", "actor": "uaa-id-119", "actor_type": "user", "actor_name": "user@email.com", "actee": "e73061b0-707a-4a42-b826-012218ae2ed5", "actee_type": "app", "actee_name": "name-426", "timestamp": "2014-11-05T01:02:15+00:00", "metadata": { "request": { "name": "new", "instances": 1, "memory": 84, "state": "STOPPED", "environment_json": "PRIVATE DATA HIDDEN" } }, "space_guid": "552dc8f9-a5e2-4d39-9a44-ae37271336d7", "organization_guid": "0bc2a0ba-5feb-4ce1-b103-2bb688d536eb" } } ] }