Name | Description | Default | Valid Values | Example Values |
---|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OSIsImVtYWlsIjoiZW1haWwtMjIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTF9.knuyA9b0hVSZiGcoezSBl8gawAtVnSThAdTIWMLCKqg Host: example.org Cookie:
GET /v2/spaces/69e5320a-2e01-4198-bc01-1b1f1cd8377b/events
curl "https://api.[your-domain.com]/v2/spaces/69e5320a-2e01-4198-bc01-1b1f1cd8377b/events" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OSIsImVtYWlsIjoiZW1haWwtMjIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTF9.knuyA9b0hVSZiGcoezSBl8gawAtVnSThAdTIWMLCKqg" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 153dd0d7-c76e-405d-82b1-8affb95dd065 Content-Length: 916 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "1a6c80a3-201b-482e-a091-6fe6955f5e0e", "url": "/v2/events/1a6c80a3-201b-482e-a091-6fe6955f5e0e", "created_at": "2015-01-20T01:52:31+00:00", "updated_at": null }, "entity": { "type": "audit.space.update", "actor": "uaa-id-288", "actor_type": "user", "actor_name": "user@example.com", "actee": "69e5320a-2e01-4198-bc01-1b1f1cd8377b", "actee_type": "space", "actee_name": "name-1848", "timestamp": "2015-01-20T01:52:31+00:00", "metadata": { "request": { "name": "new_name" } }, "space_guid": "69e5320a-2e01-4198-bc01-1b1f1cd8377b", "organization_guid": "5fad17c2-33a9-4d0e-bee1-e7b1ca5d77d4" } } ] }