Delete task

Delete an export task and its file records. Data already written to the target connector is not rolled back.

HTTP
POST $CLOUDSIGMA_API_BASE/export/task/delete

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. Confirm the task to be deleted from Query Export Task Details. Prepare personal access token, target workspace ID and task ID that can access the target workspace.

Request body

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

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/export/task/delete" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H 'Content-Type: application/json' \
  -d @- <<EOF
{
    "id": "$TASK_ID"
  }
EOF

Parameter

Type

Required

Description

id

string

Yes

The export task ID to delete.

Successful response

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

Field

Type

Description

code

string

OK means the task has been deleted.

msg

string

OK on success.

data

null

This interface does not return deleted objects.

Error response

JSON
{
  "code": "ErrServer",
  "msg": "未找到导出任务",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

data

null

The error response is null.

Last updated on