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. |
|
|
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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMCIsImVtYWlsIjoiZW1haWwtMTQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzF9.8RA4gDRQWIYwftLypg5XCXcBttsdPEpihlvu_ts-ONQ Host: example.org Cookie:
GET /v2/events?q=actee:5c17b63d-c7cf-4a39-a507-a87cb78d2ecc&q=timestamp%3E2014-01-01+00%3A00%3A00-04%3A00
q: timestamp>2014-01-01 00:00:00-04:00
curl "https://api.[your-domain.com]/v2/events?q=actee:5c17b63d-c7cf-4a39-a507-a87cb78d2ecc&q=timestamp%3E2014-01-01+00%3A00%3A00-04%3A00" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMCIsImVtYWlsIjoiZW1haWwtMTQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzF9.8RA4gDRQWIYwftLypg5XCXcBttsdPEpihlvu_ts-ONQ" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: c1b1e682-7ce1-4368-a213-edc0d021f8bc Content-Length: 2770 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "8f7f2707-36e5-478e-999e-de68c9000906", "url": "/v2/events/8f7f2707-36e5-478e-999e-de68c9000906", "created_at": "2015-02-12T01:42:11Z", "updated_at": null }, "entity": { "type": "audit.app.create", "actor": "uaa-id-199", "actor_type": "user", "actor_name": "user@email.com", "actee": "5c17b63d-c7cf-4a39-a507-a87cb78d2ecc", "actee_type": "app", "actee_name": "name-1290", "timestamp": "2015-02-12T01:42:11Z", "metadata": { "request": { "name": "new", "instances": 1, "memory": 84, "state": "STOPPED", "environment_json": "PRIVATE DATA HIDDEN" } }, "space_guid": "96293631-6bb7-4188-afb5-47f0a089da23", "organization_guid": "677314f7-1c4d-464c-9957-5eb14d402563" } }, { "metadata": { "guid": "6169b920-866e-452c-a668-c4e9df26d13d", "url": "/v2/events/6169b920-866e-452c-a668-c4e9df26d13d", "created_at": "2015-02-12T01:42:11Z", "updated_at": null }, "entity": { "type": "audit.app.update", "actor": "uaa-id-199", "actor_type": "user", "actor_name": "user@email.com", "actee": "5c17b63d-c7cf-4a39-a507-a87cb78d2ecc", "actee_type": "app", "actee_name": "name-1290", "timestamp": "2015-02-12T01:42:11Z", "metadata": { "request": { "name": "new", "instances": 1, "memory": 84, "state": "STOPPED", "environment_json": "PRIVATE DATA HIDDEN" } }, "space_guid": "96293631-6bb7-4188-afb5-47f0a089da23", "organization_guid": "677314f7-1c4d-464c-9957-5eb14d402563" } }, { "metadata": { "guid": "6c6a1699-1ccb-415d-a5e5-b0de2f0880fa", "url": "/v2/events/6c6a1699-1ccb-415d-a5e5-b0de2f0880fa", "created_at": "2015-02-12T01:42:11Z", "updated_at": null }, "entity": { "type": "audit.app.delete-request", "actor": "uaa-id-199", "actor_type": "user", "actor_name": "user@email.com", "actee": "5c17b63d-c7cf-4a39-a507-a87cb78d2ecc", "actee_type": "app", "actee_name": "name-1290", "timestamp": "2015-02-12T01:42:11Z", "metadata": { "request": { "recursive": false } }, "space_guid": "96293631-6bb7-4188-afb5-47f0a089da23", "organization_guid": "677314f7-1c4d-464c-9957-5eb14d402563" } } ] }