Query resource operation details¶
Query the status and results of an agent’s resource operations.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/operations/{operation_id}
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/$OPERATION_ID" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Workspace ID consistent with X-Workspace-ID. |
|
string |
Yes |
The operation ID to view. |
Successful response¶
{
"code": 0,
"data": {
"operation_id": "op_01",
"type": "agent_package_load",
"status": "running",
"progress": 0,
"created_at": "2026-10-14T00:00:00Z",
"updated_at": "2026-10-14T00:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
response data. |
|
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. |
Error response¶
{
"code": 3,
"message": "operation not found"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |