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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MzYxODcxMH0.QwDnBNso6OaIVHKNmZhfYuDqnaXF13WRQ95S4wizR18 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/events" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MzYxODcxMH0.QwDnBNso6OaIVHKNmZhfYuDqnaXF13WRQ95S4wizR18" \ -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": "69a93da5-2a55-4cdd-85fd-c0a19eda74eb", "url": "/v2/events/69a93da5-2a55-4cdd-85fd-c0a19eda74eb", "created_at": "2016-05-12T00:45:10Z", "updated_at": null }, "entity": { "type": "name-276", "actor": "guid-dd165771-c60c-4208-9229-b72453607ed8", "actor_type": "name-277", "actor_name": "name-278", "actee": "guid-d47dc206-99c7-41ae-82e9-1338f13cb257", "actee_type": "name-279", "actee_name": "name-280", "timestamp": "2016-05-12T00:45:10Z", "metadata": { }, "space_guid": "5f36f89e-d5c8-42ac-8c45-8136d7f71f5c", "organization_guid": "6631d5ce-3d4c-4772-88ea-aab94b8e3ab1" } }, { "metadata": { "guid": "6c5a605c-82b7-4126-ac33-1ebdf893ffaf", "url": "/v2/events/6c5a605c-82b7-4126-ac33-1ebdf893ffaf", "created_at": "2016-05-12T00:45:10Z", "updated_at": null }, "entity": { "type": "name-284", "actor": "guid-7171f7ce-6f62-4893-9030-04d500851d1a", "actor_type": "name-285", "actor_name": "name-286", "actee": "guid-f359492d-5dea-4fe7-961e-e5f04ea90053", "actee_type": "name-287", "actee_name": "name-288", "timestamp": "2016-05-12T00:45:10Z", "metadata": { }, "space_guid": "72e21403-b71c-4581-b543-e206e14f6060", "organization_guid": "4f8f3ecc-9506-4005-b78e-3a06e40da8aa" } }, { "metadata": { "guid": "8b464a63-8522-4ecb-9308-67ae4f73c33b", "url": "/v2/events/8b464a63-8522-4ecb-9308-67ae4f73c33b", "created_at": "2016-05-12T00:45:10Z", "updated_at": null }, "entity": { "type": "name-292", "actor": "guid-04518f32-a342-434a-b119-31ebfc6c17ea", "actor_type": "name-293", "actor_name": "name-294", "actee": "guid-23392f6d-815a-415a-8662-bd59a1a2a475", "actee_type": "name-295", "actee_name": "name-296", "timestamp": "2016-05-12T00:45:10Z", "metadata": { }, "space_guid": "0bd1f56d-2e91-4d4a-8b6b-1281c10c62bc", "organization_guid": "493dab75-7b97-42a6-86f7-09cd43430d22" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 7cc266d9-1d74-46e6-b74f-aea791243ad7 Content-Length: 2385 X-Content-Type-Options: nosniff