automation-suite
2021.10
false
- Getting started
- Authentication
- Scopes and permissions
- Platform Management APIs
- Get Audit Logs
- Download Audit Logs
Download Audit Logs
OUT OF SUPPORT
Automation Suite API Guide
Last updated Nov 11, 2024
Download Audit Logs
Downloads the audit logs for an organization, based on the organization ID, to your machine, in a .CSV format.
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
Note: To obtain the
{access_token}
, make sure to authenticate through one of the methods described here.
Query param |
Data type |
Description |
---|---|---|
(optional) |
string |
Specify the available display language, in the shorten form. For example,
en , fr , de , ja etc.
|
(optional) |
int32 |
Specify the download size. |
Let's say you gathered all the information needed to build the API call.
- Your
{baseURL}
is:https://{yourDomain}/{organizationName}/{tenantName}
-
Your
{access_token}
is:1234
(for length considerations). -
You set the following query params:
-
language
=en
-
size
= 13, to download top 13 entries.
-
The call should look like below (cURL):
curl --location --request GET '
https://{yourDomain}/{organizationName}/audit_/api/auditlogs/download/?language=en&size=13' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json'
curl --location --request GET '
https://{yourDomain}/{organizationName}/audit_/api/auditlogs/download/?language=en&size=13' \
--header 'Authorization: Bearer 1234' \
--header 'Content-Type: application/json'