Start a new export job and download the .CSV file

Start a new event log export job and download the exported .CSV file.

Example: POST a request to start a new export

Request URL:

POST https://api.{region}.alida.com/v2/applications/{communityApiKeyName}/auditlogs/exports

Response content:

{
    "id": "861d2c08-8a09-1a99-bcdd-8faa3a698203"
}

Use the id value from the response as the job ID when requesting the details for the new export job.

Example: GET the details for the new export job

Request URL:

GET https://api.{region}.alida.com/v2/applications/{communityApiKeyName}/auditlogs/exports/861d2c08-8a09-1a99-bcdd-8faa3a698203

Response content:

{
    "id": "861d2c08-8a09-1a99-bcdd-8faa3a698203",
    "status": "Succeeded",
    "errormessage": null,
    "data": "https://api.{region}.alida.com/v2/applications/{communityApiKeyName}/auditlogs/exports/861d2c08-8a09-1a99-bcdd-8faa3a698203/downloadfile"
}

Use the data value from the response as the GET URL to request the temporary URL of the export .CSV file..

Example: Get the temporary URL of the export .CSV file

Request URL:

GET https://api.{region}.alida.com/v2/applications/{communityApiKeyName}/auditlogs/exports/861d2c08-8a09-1a99-bcdd-8faa3a698203/downloadfile

Response content:

{
    "url": "https://vci-pfs-na1.s3.ca-central-1.amazonaws.com/vci-auditlog/
            612f469f-aeb9-45a2-a769-a4d50185e3db/EventLog_2021-07-28T17.23.58.csv?
            X-Amz-Algorithm=AWS4-HMAC-SHA256
            &X-Amz-Credential=ASIAYOFVMMUD3GVXVEVN%2F20210728%2Fca-central-1%2Fs3%2Faws4_request
            &X-Amz-Date=20210728T172759Z&X-Amz-Expires=30
            &X-Amz-Security-Token=<token>
            &X-Amz-Signature=757567aaf13113b313bfdb3abee495d6bb01da39bc23748ca9931901ba331136
            &X-Amz-SignedHeaders=host"
}

Use the returned value of the url field to download the .CSV file for the export. The URL includes the authentication information to download the file directly using the link. The link expires after 30 seconds.