Skip to main content

List Operation Logs

List NineData operation audit logs with pagination. This API requires Audit module permissions.

Endpoint: /openapi/v1/actionTrail/list

Method: GET

Request parameters

ParameterTypeRequiredDescription
accountIdStringNoAccount ID. Omit it to query all accounts.
startTimeDateTimeNoStart of the operation time range in ISO 8601 format, for example, 2025-07-31T09:12:30Z.
endTimeDateTimeNoEnd of the operation time range in ISO 8601 format.
moduleStringNoModule. See the values below.
typeStringNoEvent type. See the values below.
objectIdStringNoEvent object ID.
currentIntegerNoCurrent page number, starting at 1. Default: 1.
pageSizeIntegerNoRecords per page. Default: 10; maximum: 1000.

Module values

sqlWindow, dsql, sqlTask, dataGenerate, sqlExport, dataExport, dataImport, dataArchive, sqlReview, dataTrack, slowLog, sqlReadSensitive, sqlWriteSensitive, backupTask, restore, backupQuery, replicationTask, compareData, compareSchema, datasourceOperate, gateway, accesscredential, privatelink, user, role, organization, permissionApply, ruleSet, rule, approval, reportManage, group, flow, externalApplication, and externalApproval.

Event type values

create, modify, delete, execute, revert, cancel, export, transfer, login, download, enable, disable, debug, start, suspend, and stop.

Response parameters

ParameterTypeDescription
successBooleanWhether the request succeeded.
requestIdStringRequest ID.
currentIntegerCurrent page.
pageSizeIntegerPage size.
totalIntegerTotal number of records.
dataArrayOperation log details.
data[].trailIdStringLog ID.
data[].eventTimeDateTimeOperation time.
data[].accountIdStringAccount ID.
data[].accountNameStringAccount name.
data[].moduleStringModule.
data[].typeStringEvent type.
data[].objectIdStringEvent object ID.
data[].detailStringEvent detail.

Success response

{
"success": true,
"requestId": "<requestId>",
"current": 1,
"pageSize": 10,
"total": 1,
"data": [{
"trailId": "<trailId>",
"eventTime": "2026-07-30T10:00:00Z",
"accountId": "<accountId>",
"accountName": "example-user",
"module": "datasourceOperate",
"type": "create",
"objectId": "<datasourceId>",
"detail": "<detail>"
}]
}