GET /v2/events?q=type:audit.space.create
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 |
|
|
q: type:audit.space.create
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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OCIsImVtYWlsIjoiZW1haWwtMjE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTV9.EcEIpItcgsJp2nT911feEmPZCObCD_HSs_JKWlpqRVU Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/events?q=type:audit.space.create" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OCIsImVtYWlsIjoiZW1haWwtMjE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTV9.EcEIpItcgsJp2nT911feEmPZCObCD_HSs_JKWlpqRVU" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "8ec634b4-9e83-43f1-9774-043fd26706ea", "url": "/v2/events/8ec634b4-9e83-43f1-9774-043fd26706ea", "created_at": "2015-03-10T23:11:55Z", "updated_at": null }, "entity": { "type": "audit.space.create", "actor": "uaa-id-287", "actor_type": "user", "actor_name": "user@email.com", "actee": "91ec2bb8-af86-4ce5-8b6b-a686070f258e", "actee_type": "space", "actee_name": "name-1136", "timestamp": "2015-03-10T23:11:55Z", "metadata": { "request": { "name": "outer space" } }, "space_guid": "91ec2bb8-af86-4ce5-8b6b-a686070f258e", "organization_guid": "740cf383-7af4-469d-8bdd-8a7a274b8bd7" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 95bb9744-b8e2-487f-a699-28b960524d11 Content-Length: 907 X-Content-Type-Options: nosniff