Get import task statistics

Returns the import task statistics that can be viewed by the caller in the current workspace. The results include the total number of tasks and the number of tasks in each status, without reading task details.

HTTP
GET $CLOUDSIGMA_API_BASE/task/stats

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 target workspace ID that can access the target workspace.

Request parameters

Replace $CLOUDSIGMA_API_KEY and $WORKSPACE_ID with actual values.

Shell
curl "$CLOUDSIGMA_API_BASE/task/stats" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

This interface has no path or query parameters.

Return statistics object

JSON
{
  "total": 22,
  "running": 10,
  "waiting": 8,
  "failed": 4
}

Field

Type

Description

total

integer

The total number of import tasks visible to the current caller.

running

integer

The number of running tasks.

waiting

integer

The number of tasks waiting to be processed, including suspended tasks.

failed

integer

The number of failed tasks.

Last updated on