Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Get Log File Content

GET/api/v2/audit/organizations/{organizationRid}/logFiles/{logFileId}/content
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:audit-read.

Path parameters

organizationRid
string
logFileId
string

The ID of an audit log file

Query parameters

preview
boolean
optional

Enables the use of preview functionality.

Response body

body
string

Examples

Request

Copied!
1 2 3 curl \ \t-H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/audit/organizations/ri.multipass..organization.c30ee6ad-b5e4-4afe-a74f-fe4a289f2faa/logFiles/S2VlcEV4cGxvcmluZw==/content?preview=true"

Error responses

Error Name
GetLogFileContentPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not content the LogFile.
ParametersorganizationRid, logFileId
GetLogFileContentPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not content the LogFile.
ParametersorganizationRid, logFileId