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.
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.
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¶
{
"code": "OK",
"msg": "success",
"data": {
"total": 3,
"success": 2,
"failed": 1
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
The total number of operation records. |
|
integer |
The number of successful operations. |
|
integer |
The number of failed operations. |
When you need to view specific operations, use Query operation log.
Error response¶
{
"code": "ErrServer",
"msg": "服务内部错误",
"data": null
}
Field |
Type |
Description |
|---|---|---|
code |
string |
error code. |
msg |
string |
error message. |
data |
null |
—。 |