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 |
|
|
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 |
|
|
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. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MyIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzJ9.qCs1xZuHfeRIgvhM65kK7nfniR6KrohSEihAMZ-NSZE Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/events" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MyIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzJ9.qCs1xZuHfeRIgvhM65kK7nfniR6KrohSEihAMZ-NSZE" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "4906cf8e-dbd3-4eae-9230-4ad753a08abb", "url": "/v2/events/4906cf8e-dbd3-4eae-9230-4ad753a08abb", "created_at": "2016-02-19T02:03:52Z", "updated_at": null }, "entity": { "type": "name-925", "actor": "guid-91a23233-90d2-4b43-9d48-178ecacc500c", "actor_type": "name-926", "actor_name": "name-927", "actee": "guid-56c39de5-7b2e-450e-9e75-0abba1396d46", "actee_type": "name-928", "actee_name": "name-929", "timestamp": "2016-02-19T02:03:52Z", "metadata": { }, "space_guid": "a5d478e8-8921-4ffb-8f8b-8ec8d492aec6", "organization_guid": "d9d8e431-ba6f-4be3-a82f-e38c93021048" } }, { "metadata": { "guid": "fe91af85-72e6-4b78-b34e-5d8b507afdce", "url": "/v2/events/fe91af85-72e6-4b78-b34e-5d8b507afdce", "created_at": "2016-02-19T02:03:52Z", "updated_at": null }, "entity": { "type": "name-933", "actor": "guid-5bda5744-5877-4461-84a1-2c469d75784a", "actor_type": "name-934", "actor_name": "name-935", "actee": "guid-be356f5e-4cab-4b28-b4be-a5fcad208903", "actee_type": "name-936", "actee_name": "name-937", "timestamp": "2016-02-19T02:03:52Z", "metadata": { }, "space_guid": "7b637820-cfc4-4db5-acc6-139c4d084192", "organization_guid": "ec822ad8-d28e-4627-8ec5-864ed024c54c" } }, { "metadata": { "guid": "90e649d7-cef2-475d-83de-e15e5211883e", "url": "/v2/events/90e649d7-cef2-475d-83de-e15e5211883e", "created_at": "2016-02-19T02:03:52Z", "updated_at": null }, "entity": { "type": "name-941", "actor": "guid-b794b2ce-f679-40c3-b78a-9966d3d3f1ca", "actor_type": "name-942", "actor_name": "name-943", "actee": "guid-0906a97d-67ae-4459-b36f-4c73f56358c3", "actee_type": "name-944", "actee_name": "name-945", "timestamp": "2016-02-19T02:03:52Z", "metadata": { }, "space_guid": "842597ef-c04b-4308-921e-0cba4831fb66", "organization_guid": "19302cff-9c6b-4183-838b-174a6b621c2c" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 2385 X-Content-Type-Options: nosniff