GET /v2/spaces/8e7f074b-de4c-4040-81be-0acfe94373ab/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDV9.Q7GCsRiKf_1q3E0j1p40V9KBKAi4B4KjJWIiX9xyCZs Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/8e7f074b-de4c-4040-81be-0acfe94373ab/events" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDV9.Q7GCsRiKf_1q3E0j1p40V9KBKAi4B4KjJWIiX9xyCZs" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "1cf63d9c-d76e-4a5c-b4a3-766fe1a76260", "url": "/v2/events/1cf63d9c-d76e-4a5c-b4a3-766fe1a76260", "created_at": "2016-02-19T02:04:05Z", "updated_at": null }, "entity": { "type": "audit.space.update", "actor": "uaa-id-429", "actor_type": "user", "actor_name": "user@example.com", "actee": "8e7f074b-de4c-4040-81be-0acfe94373ab", "actee_type": "space", "actee_name": "name-2535", "timestamp": "2016-02-19T02:04:05Z", "metadata": { "request": { "name": "new_name" } }, "space_guid": "8e7f074b-de4c-4040-81be-0acfe94373ab", "organization_guid": "65018891-d96b-4c39-9910-225621ed095f" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 906 X-Content-Type-Options: nosniff