GET /v2/spaces/97f84ee3-04db-49a4-bbde-32cc7cad466a/events
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Space |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC0zOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.rPJBAeW8wyFoE_1bET9r0lW8dr5PaR9YrYlW338Qcqg Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/97f84ee3-04db-49a4-bbde-32cc7cad466a/events" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC0zOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.rPJBAeW8wyFoE_1bET9r0lW8dr5PaR9YrYlW338Qcqg" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "91c20b8b-9a64-429c-bb1e-1651cd87c363", "url": "/v2/events/91c20b8b-9a64-429c-bb1e-1651cd87c363", "created_at": "2015-10-13T17:31:37Z", "updated_at": null }, "entity": { "type": "audit.space.update", "actor": "uaa-id-70", "actor_type": "user", "actor_name": "user@example.com", "actee": "97f84ee3-04db-49a4-bbde-32cc7cad466a", "actee_type": "space", "actee_name": "name-168", "timestamp": "2015-10-13T17:31:37Z", "metadata": { "request": { "name": "new_name" } }, "space_guid": "97f84ee3-04db-49a4-bbde-32cc7cad466a", "organization_guid": "d2f91385-6b13-4dfe-80ee-61ddce1868f8" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 32693a52-90e1-4807-b1e4-665ca74c3089 Content-Length: 904 X-Content-Type-Options: nosniff