Pause task¶
Request a pause for a running import task. A successful response means only that the pause request was accepted.
POST $CLOUDSIGMA_API_BASE/task/pause
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, target workspace ID and task ID that can access the target workspace. The task must be active or paused.
Request body¶
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $TASK_ID with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/task/pause" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d "{\n \\"task_id\\": \\"$TASK_ID\\"\n }"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The ID of the import task to pause. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
null |
Do not return to the paused task status. |
Error response¶
{
"code": "ErrServer",
"msg": "task cannot be paused in its current status",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
|
null |
The error response is |