Delete task¶
Delete an export task and its file records. Data already written to the target connector is not rolled back.
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.
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 |
|---|---|---|---|
|
string |
Yes |
The export task ID to delete. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
null |
This interface does not return deleted objects. |
Error response¶
{
"code": "ErrServer",
"msg": "未找到导出任务",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
|
null |
The error response is |