Query resource operation list¶
Query the asynchronous operation of agent resources in the workspace.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/operations
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 a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/operations" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Workspace ID consistent with X-Workspace-ID. |
Query parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Filter by action type. |
|
string |
No |
Filter by associated resource type. |
|
string |
No |
Filter by associated resource ID. |
|
string |
No |
Filter by accepted, running, succeeded, failed, or canceled. |
|
integer |
No |
The number of pages returned. |
|
integer |
No |
Returns the offset. |
Successful response¶
{
"code": 0,
"data": {
"items": [],
"total": 0,
"limit": 0,
"offset": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
response data. |
|
array of object |
Resource operations for the current page. |
|
string |
Operation ID. |
|
string |
Operation type. |
|
string |
Associated resource type. Does not return if not set. Can be omitted if not set. |
|
string |
Associated resource ID. Does not return if not set. Can be omitted if not set. |
|
string |
Operating Instructions. Can be omitted if not set. |
|
string |
operating status. Values: |
|
integer |
Operation progress. |
|
object |
Successful results. Does not return if not set. Can be omitted if not set. |
|
object |
Failure message. Does not return if not set. Can be omitted if not set. |
|
string |
Creation time, in RFC 3339 format. |
|
string |
Last updated in RFC 3339 format. |
|
string |
Completion time, may be omitted if not completed. Can be omitted if not set. |
|
integer |
The total number of operations that match the filter criteria. |
|
integer |
The number of single pages used this time. |
|
integer |
The return offset used this time. |
Error response¶
{
"code": 6,
"message": "unauthenticated"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |