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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzF9._dRKgBv4aalVjamdKCAlQSemSLum1G5LmawcEQcbmp4 Host: example.org Cookie:
GET /v2/events?q=actee:55eb6abc-7382-4704-9ddd-fefd65cbac93&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:55eb6abc-7382-4704-9ddd-fefd65cbac93&q=timestamp%3E2014-01-01+00%3A00%3A00-04%3A00" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzF9._dRKgBv4aalVjamdKCAlQSemSLum1G5LmawcEQcbmp4" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 2fc361d7-f9f6-4307-b3ed-5d5bfd373abc 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": "8c3faa94-ec63-4bbe-be59-9a8ca68122af", "url": "/v2/events/8c3faa94-ec63-4bbe-be59-9a8ca68122af", "created_at": "2015-02-10T01:42:51Z", "updated_at": null }, "entity": { "type": "audit.app.create", "actor": "uaa-id-231", "actor_type": "user", "actor_name": "user@email.com", "actee": "55eb6abc-7382-4704-9ddd-fefd65cbac93", "actee_type": "app", "actee_name": "name-1094", "timestamp": "2015-02-10T01:42:51Z", "metadata": { "request": { "name": "new", "instances": 1, "memory": 84, "state": "STOPPED", "environment_json": "PRIVATE DATA HIDDEN" } }, "space_guid": "970f5cf0-6819-4338-99c2-d02aa4d13021", "organization_guid": "41591feb-5403-4ff1-84c0-09eae61781c9" } }, { "metadata": { "guid": "b51376a8-2377-4eb2-901c-1104fa1c0064", "url": "/v2/events/b51376a8-2377-4eb2-901c-1104fa1c0064", "created_at": "2015-02-10T01:42:51Z", "updated_at": null }, "entity": { "type": "audit.app.update", "actor": "uaa-id-231", "actor_type": "user", "actor_name": "user@email.com", "actee": "55eb6abc-7382-4704-9ddd-fefd65cbac93", "actee_type": "app", "actee_name": "name-1094", "timestamp": "2015-02-10T01:42:51Z", "metadata": { "request": { "name": "new", "instances": 1, "memory": 84, "state": "STOPPED", "environment_json": "PRIVATE DATA HIDDEN" } }, "space_guid": "970f5cf0-6819-4338-99c2-d02aa4d13021", "organization_guid": "41591feb-5403-4ff1-84c0-09eae61781c9" } }, { "metadata": { "guid": "c94d4213-1f21-4ddb-a2e3-263ae8f88c6b", "url": "/v2/events/c94d4213-1f21-4ddb-a2e3-263ae8f88c6b", "created_at": "2015-02-10T01:42:51Z", "updated_at": null }, "entity": { "type": "audit.app.delete-request", "actor": "uaa-id-231", "actor_type": "user", "actor_name": "user@email.com", "actee": "55eb6abc-7382-4704-9ddd-fefd65cbac93", "actee_type": "app", "actee_name": "name-1094", "timestamp": "2015-02-10T01:42:51Z", "metadata": { "request": { "recursive": false } }, "space_guid": "970f5cf0-6819-4338-99c2-d02aa4d13021", "organization_guid": "41591feb-5403-4ff1-84c0-09eae61781c9" } } ] }