All Products
Search
Document Center

Drive and Photo Service:AuditLogExport

Last Updated:Aug 04, 2025

Exports audit logs.

Operation description

Log audit is a value-added feature that is provided by Drive and Photo Service (PDS) Developer Edition. Before you call this operation, make sure that you learn about the value-added billable items.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v2/audit_log/export HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
bodyobjectNo

The request body.

querystringNo

The fields used for query. You can specify one or more of the following fields:

  • drive_id (space ID, in the form of a string)
  • actor_id (operator ID, in the form of a string)
  • acted_at (operation time, in the yyyy-MM-ddTHH:mm:ssZ format in UTC, for example, 2006-01-02T00:00:00)
  • action_type (operation type, in the form of a string)
acted_at > '2025-03-10T16:00:00' and acted_at < '2025-03-17T15:59:59'
order_bystringNo

The sort order based on the operation time. If you leave this parameter empty, the value acted_at DESC is used. Valid values:

  • acted_at DESC: sorts the entries by operation time in descending order
  • acted_at ASC: sorts the entries by operation time in ascending order
acted_at DESC
file_namestringNo

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

2024-01-log.csv
languagestringNo

The export language. Default value: zh-CN. Valid values:

  • zh-CN: Chinese
  • en_US: English
zh_CN

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

async_task_idstring

The ID of the asynchronous task used to export audit logs.

4221bf6e6ab43c255edc4463bf3a6f5f5d31****

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.