List activity log events
GET {{baseUrl}}/audit-user-events?aid=1234&useAllPermittedAids=false&window=12h&startDate=2022-07-17T22:00:54Z&endDate=2022-07-18T22:00:54Z&cursor=
Returns a list of activity log events in the current account group.
If useAllPermittedAids=true
query parameter is passed and the user has permission View activity log for all users in account group
the logs returned include events across all the account groups they belong to.
For more information about changing the account group context, see Account Context.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
aid | number | A unique identifier associated with your account group. You can retrieve your AccountGroupId from the /account-groups endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | |
useAllPermittedAids | boolean | Set to true to load data from all accounts the user has access to. | |
window | string | A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: s for seconds (default if no type is specified), m for minutes, h for hours, d for days, and w for weeks. | |
For a precise date range, use startDate and endDate . | |||
startDate | string | Use with the endDate parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with window . | |
endDate | string | Defaults to current time the request is made. Use with the startDate parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with window . | |
cursor | null | (Optional) Opaque cursor used for pagination. Clients should use next value from _links instead of this parameter. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"auditEvents":[{"accountGroupName":"API Sandbox","aid":"1234","date":"2020-07-17T21:54:54Z","event":"Report created.","ipAddress":"99.128.0.0/11","uid":"1234","user":"API Sandbox User (noreply@thousandeyes.com)","resources":[{"name":"My New report","type":"reportTitle"},{"name":"Other Report","type":"testName"}]},{"accountGroupName":"API Sandbox","aid":"1234","date":"2020-07-17T22:00:54Z","event":"Login failed.","ipAddress":"99.128.0.0/11","uid":"1234","user":"API Sandbox User (noreply@thousandeyes.com)"}],"startDate":"2022-07-17T22:00:54Z","endDate":"2022-07-18T22:00:54Z","_links":{"previous":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":false,"type":"laborum consectetur","deprecation":"incididunt enim","name":"dolor","profile":"quis D","title":"velit amet","hreflang":"Excepteur enim labore ut"},"next":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":false,"type":"ex proident qui","deprecation":"fugiat","name":"consectetur est Lorem","profile":"anim sit ut ipsum ut","title":"tempor elit ad quis","hreflang":"Duis nostrud cillum incididunt enim"},"self":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":true,"type":"ad laborum aute","deprecation":"occaecat quis commodo ut","name":"ad amet sed ea dolore","profile":"sint deserunt cillum occaecat nisi","title":"id consectetur","hreflang":"Lorem mollit eiusmod dolore"}}}