GET /v2/events
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 |
|
|
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 |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2IiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgzfQ.mlJWB09dxc0WyknW6JvygsC5UtSph8tJvsq0OZ3-nqM Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/events" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2IiwiZW1haWwiOiJlbWFpbC0zMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgzfQ.mlJWB09dxc0WyknW6JvygsC5UtSph8tJvsq0OZ3-nqM" \ -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. |
|
|
type | The type of the event. |
|
|
actor | The GUID of the actor. |
|
|
actor_type | The actor type. |
|
|
actor_name | The name of the actor. |
|
|
actor_username | The username 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. |
|
|
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "b8ede8e1-afc8-40a1-baae-236a0a77b27b", "url": "/v2/events/b8ede8e1-afc8-40a1-baae-236a0a77b27b", "created_at": "2016-06-08T16:41:23Z", "updated_at": "2016-06-08T16:41:26Z" }, "entity": { "type": "name-167", "actor": "guid-008640fc-d316-4602-9251-c8d09bbdc750", "actor_type": "name-168", "actor_name": "name-169", "actee": "guid-e7790fa4-be2b-4a0f-aa82-c124342b0bb4", "actee_type": "name-170", "actee_name": "name-171", "timestamp": "2016-06-08T16:41:23Z", "metadata": { }, "space_guid": "3a1368e7-e3b7-46af-a98d-57b9c71445e7", "organization_guid": "86aa12ee-8c4f-4b26-b391-2be6c1730dbc" } }, { "metadata": { "guid": "2ccf53a8-d0eb-4807-9bb9-7dd844e65267", "url": "/v2/events/2ccf53a8-d0eb-4807-9bb9-7dd844e65267", "created_at": "2016-06-08T16:41:23Z", "updated_at": "2016-06-08T16:41:26Z" }, "entity": { "type": "name-175", "actor": "guid-52cb38f4-d52d-4201-87e3-8e5650efc8c1", "actor_type": "name-176", "actor_name": "name-177", "actee": "guid-5c4214a1-f295-42ae-bd92-38e7cb8be538", "actee_type": "name-178", "actee_name": "name-179", "timestamp": "2016-06-08T16:41:23Z", "metadata": { }, "space_guid": "10f0fd9d-dd68-428e-8e93-c00bb8eff0a6", "organization_guid": "aa3fdaaa-42c8-4141-bc22-9792c37aa62f" } }, { "metadata": { "guid": "4f9b1fef-2ce4-4877-85e1-0da9114a92cb", "url": "/v2/events/4f9b1fef-2ce4-4877-85e1-0da9114a92cb", "created_at": "2016-06-08T16:41:23Z", "updated_at": "2016-06-08T16:41:26Z" }, "entity": { "type": "name-183", "actor": "guid-d3be7ed1-1c08-43f6-a20d-5cd9287492e1", "actor_type": "name-184", "actor_name": "name-185", "actee": "guid-9844795f-943d-47ed-a997-2c04ee611f5a", "actee_type": "name-186", "actee_name": "name-187", "timestamp": "2016-06-08T16:41:23Z", "metadata": { }, "space_guid": "f9ef235c-25df-4aa1-bcb4-15eec6f92146", "organization_guid": "24a920db-f551-46af-bf73-e1db972f652a" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: eadf02e9-3d03-4790-b827-89728c055e19 Content-Length: 2385 X-Content-Type-Options: nosniff
GET /v2/events?q=actee:4bbd7549-0daf-4a75-8711-e14f3199d487&q=timestamp%3E2014-01-01+00%3A00%3A00-04%3A00
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 |
|
|
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 |
|
|
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: timestamp>2014-01-01 00:00:00-04:00
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgzfQ.IapdkwqITVKvA3XDLzLxmaXWG94IGQf_d-BjohZ5AiY Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/events?q=actee:4bbd7549-0daf-4a75-8711-e14f3199d487&q=timestamp%3E2014-01-01+00%3A00%3A00-04%3A00" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgzfQ.IapdkwqITVKvA3XDLzLxmaXWG94IGQf_d-BjohZ5AiY" \ -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. |
|
|
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. |
|
|
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "328a5f97-b3c7-4b96-9891-8dab5fb631c2", "url": "/v2/events/328a5f97-b3c7-4b96-9891-8dab5fb631c2", "created_at": "2016-06-08T16:41:23Z", "updated_at": "2016-06-08T16:41:26Z" }, "entity": { "type": "audit.app.create", "actor": "uaa-id-44", "actor_type": "user", "actor_name": "[email protected]", "actee": "4bbd7549-0daf-4a75-8711-e14f3199d487", "actee_type": "app", "actee_name": "name-322", "timestamp": "2016-06-08T16:41:23Z", "metadata": { "request": { "name": "new", "instances": 1, "memory": 84, "state": "STOPPED", "environment_json": "PRIVATE DATA HIDDEN", "docker_image": "cloudfoundry/example-docker-app", "docker_credentials": "PRIVATE DATA HIDDEN" } }, "space_guid": "c2fe70d7-56b1-48d6-ac5e-e93f2c8e70cd", "organization_guid": "2ee4f517-072a-4392-9ae6-15bd38273be6" } }, { "metadata": { "guid": "7fb184f5-329f-4436-98a0-7b3523a5b2f7", "url": "/v2/events/7fb184f5-329f-4436-98a0-7b3523a5b2f7", "created_at": "2016-06-08T16:41:23Z", "updated_at": "2016-06-08T16:41:26Z" }, "entity": { "type": "audit.app.update", "actor": "uaa-id-44", "actor_type": "user", "actor_name": "[email protected]", "actee": "4bbd7549-0daf-4a75-8711-e14f3199d487", "actee_type": "app", "actee_name": "name-322", "timestamp": "2016-06-08T16:41:23Z", "metadata": { "request": { "name": "new", "instances": 1, "memory": 84, "state": "STOPPED", "environment_json": "PRIVATE DATA HIDDEN", "docker_image": "cloudfoundry/example-docker-app", "docker_credentials": "PRIVATE DATA HIDDEN" } }, "space_guid": "c2fe70d7-56b1-48d6-ac5e-e93f2c8e70cd", "organization_guid": "2ee4f517-072a-4392-9ae6-15bd38273be6" } }, { "metadata": { "guid": "7e075705-9f98-40ab-bc1f-7a19ced0cf70", "url": "/v2/events/7e075705-9f98-40ab-bc1f-7a19ced0cf70", "created_at": "2016-06-08T16:41:23Z", "updated_at": "2016-06-08T16:41:26Z" }, "entity": { "type": "audit.app.delete-request", "actor": "uaa-id-44", "actor_type": "user", "actor_name": "[email protected]", "actee": "4bbd7549-0daf-4a75-8711-e14f3199d487", "actee_type": "app", "actee_name": "name-322", "timestamp": "2016-06-08T16:41:23Z", "metadata": { "request": { "recursive": false } }, "space_guid": "c2fe70d7-56b1-48d6-ac5e-e93f2c8e70cd", "organization_guid": "2ee4f517-072a-4392-9ae6-15bd38273be6" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 5abde007-9fc5-4329-987d-832c44393a6c Content-Length: 2894 X-Content-Type-Options: nosniff