All Products
Search
Document Center

Drive and Photo Service:AuditLogExport

Last Updated:May 26, 2026

Exports audit logs.

Operation description

In Drive and Photo Service for Developer, audit logging is a value-added feature. Before using this operation, review the billable items for value-added features.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /v2/audit_log/export HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

domain_id

string

No

The domain ID.

body

object

No

The request body parameters.

query

string

No

Query audit logs by using a combination of the following fields:

  • drive_id (string): The drive ID.

  • actor_id (string): The actor ID.

  • acted_at (date): The operation time. The time must be in UTC and specified in the YYYY-MM-DDTHH:mm:ss format.

  • action_type (string): The operation type.

acted_at > '2025-03-10T16:00:00' and acted_at < '2025-03-17T15:59:59'

order_by

string

No

The sort field. You can sort by the operation time (acted_at). If this parameter is not specified, the results are sorted by operation time in descending order. Valid values:

  • acted_at DESC: Sorts by operation time in descending order.

  • acted_at ASC: Sorts by operation time in ascending order.

acted_at DESC

file_name

string

No

The name of the exported file. The name can be up to 1,024 characters in length. The default value is log.csv.

2024-01-log.csv

language

string

No

The language of the exported file. Default: zh_CN (Chinese). Valid values:

  • zh_CN: Chinese

  • en_US: English

zh_CN

Response elements

Element

Type

Description

Example

object

The response parameters.

async_task_id

string

The ID of the asynchronous export task.

4221bf6e6ab43c255edc4463bf3a6f5f5d31****

Examples

Success response

JSON format

{
  "async_task_id": "4221bf6e6ab43c255edc4463bf3a6f5f5d31****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.