List operation logs¶
View the operation records of the current identity in the current workspace by paging according to conditions, which can be used to trace operation time, results and related resources.
GET $CLOUDSIGMA_API_BASE/audit/logs
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 -G "$CLOUDSIGMA_API_BASE/audit/logs" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
--data-urlencode 'method=POST' \
--data-urlencode 'result=success' \
--data-urlencode 'start_time=2026-08-18T00:00:00Z' \
--data-urlencode 'end_time=2026-08-18T01:00:00Z' \
--data-urlencode 'page=1' \
--data-urlencode 'page_size=20'
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Filter by request method. |
|
string |
No |
Filter by operation results. You can fill in success, failed or other. |
|
integer |
No |
Filter by status code. |
|
string |
No |
Query start time, for example 2026-08-18T00:00:00Z. |
|
string |
No |
Query end time, for example, 2026-08-18T01:00:00Z. |
|
integer |
No |
Page numbers, starting from 1. |
|
integer |
No |
The number of records returned per page. |
result supports success, failed and other. operator_user_id is not currently participating in screening.
When the operator is the current user, the name in the current alias or profile will be displayed first. The name may be different from when the operation occurred.
Query time and paging
The time must be filled in with the complete date, time and time zone. When the page number is omitted or less than 1, use page 1. When the number of items per page is omitted or less than 1, 20 is used, and the maximum is 200.
Filter operation logs
When reading the next page, keep the original filter conditions and add 1 to page. For example, read page 2:
curl -G "$CLOUDSIGMA_API_BASE/audit/logs" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
--data-urlencode 'method=POST' \
--data-urlencode 'result=success' \
--data-urlencode 'start_time=2026-08-18T00:00:00Z' \
--data-urlencode 'end_time=2026-08-18T01:00:00Z' \
--data-urlencode 'page=2' \
--data-urlencode 'page_size=20'
When the cumulative number of read logs reaches the total number, or when there is no record on the current page, page turning stops.
Successful response¶
{
"code": "OK",
"msg": "success",
"data": {
"items": [
{
"id": "0190e1b6-7fe3-7cc2-9d7f-f589f9d37653",
"workspace_id": "workspace-123",
"operator_user_id": "user-123",
"operator_name_snapshot": "张三",
"method": "POST",
"path": "/workflow/v2/workflow-apps",
"route_pattern": "/workflow/v2/workflow-apps",
"status_code": 200,
"result": "success",
"duration_ms": 35,
"created_at": "2026-08-21T07:00:00Z"
}
],
"total": 1,
"page": 1,
"page_size": 20
}
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Operation log of this page. |
|
string |
Log ID. |
|
string |
The workspace ID to which the log belongs. |
|
string |
The user ID that performed the operation. |
|
string |
The name of the operator saved during recording. |
|
string |
Request method. |
|
string |
The actual request path. |
|
string |
Routing template. |
|
string |
Logged query parameters. |
|
string |
Logged request content. |
|
string |
Logged response content. |
|
integer |
status code. |
|
string |
Operation result, success, failed or other. |
|
string |
error code. |
|
string |
error message. |
|
integer |
The operation takes time, in milliseconds. |
|
string |
Client IP. |
|
string |
Client ID. |
|
string |
Request ID. |
|
string |
Operation type. |
|
string |
Resource type. |
|
string |
Resource ID. |
|
string |
Resource name. |
|
string |
Operation summary. |
|
string |
Additional information. |
|
string |
Log creation time. RFC 3339 time. |
|
integer |
The total number of logs that meet the filter criteria. |
|
integer |
The page number used for this response. |
|
integer |
The actual number of entries per page used in this response. |
When you need to know the number of successful and failed operations first, use Query Operation Log Overview.
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效",
"data": null
}
Field |
Type |
Description |
|---|---|---|
code |
string |
error code. |
msg |
string |
error message. |
data |
null |
—。 |