Get operation log overview

Summarize the number of operation records of the current identity in the current workspace to quickly understand the number of successful and failed operations. This interface does not return specific operation records, nor does it support filtering.

HTTP
GET $CLOUDSIGMA_API_BASE/audit/logs/overview

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare personal access token and current workspace ID with current workspace access rights.

Request parameters

Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.

Shell
curl "$CLOUDSIGMA_API_BASE/audit/logs/overview" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

X-API-Key in the request header passes in the personal access token. X-Workspace-ID specifies the target workspace.

Successful response

JSON
{
  "code": "OK",
  "msg": "success",
  "data": {
    "total": 3,
    "success": 2,
    "failed": 1
  }
}

Field

Type

Description

data.total

integer

The total number of operation records.

data.success

integer

The number of successful operations.

data.failed

integer

The number of failed operations.

When you need to view specific operations, use Query operation log.

Error response

JSON
{
  "code": "ErrServer",
  "msg": "服务内部错误",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

error message.

data

null

—。

Last updated on