Resume task

Resume a paused import task. A successful response means only that the resume request was accepted.

HTTP
POST $CLOUDSIGMA_API_BASE/task/resume

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. First Query the import task details to confirm that the task has been suspended.

Request body

Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $TASK_ID with actual values.

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/task/resume" \
  -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

task_id

string

Yes

Import task ID to resume.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": null
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data

null

The restored task status is not returned.

Error response

JSON
{
  "code": "ErrServer",
  "msg": "task must be paused before resume",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

data

null

The error response is null.

Last updated on