POST
/
v1
/
projects
/
{project}
/
auditLogs:export
{
  "content": "<string>",
  "nextPageToken": "<string>"
}

Path Parameters

project
string
required

The project id.

Body

application/json
parent
string
required
filter
string

The filter of the log. It should be a valid CEL expression. Check the filter field in the SearchAuditLogsRequest message.

orderBy
string

The order by of the log. Only support order by create_time. For example:

  • order_by = "create_time asc"
  • order_by = "create_time desc"
format
enum<string>

The export format.

Available options:
FORMAT_UNSPECIFIED,
CSV,
JSON,
SQL,
XLSX
pageSize
integer

The maximum number of logs to return. The service may return fewer than this value. If unspecified, at most 10 log entries will be returned. The maximum value is 5000; values above 5000 will be coerced to 5000.

pageToken
string

A page token, received from a previous ExportAuditLogs call. Provide this to retrieve the subsequent page.

Response

OK

content
string<bytes>
nextPageToken
string

A token to retrieve next page of log entities. Pass this value in the page_token field in the subsequent call to retrieve the next page of log entities.