forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
7.1 KiB
7.1 KiB
Canceling a Scheduled Task
Function
This function is used to cancel a scheduled task based on the task ID.
Constraints
This API supports the following types of instances:
- GeminiDB Influx
- GeminiDB Cassandra
URI
DELETE https://{Endpoint}/v3/{project_id}/scheduled-jobs/{job_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID of a user in a region |
job_id |
Yes |
String |
Task ID. The value is the same as the job_id field returned in the scheduled task list. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
Content-Type |
Yes |
String |
MIME type of the request body. application/json is recommended. |
X-Auth-Token |
Yes |
String |
User token |
Response Parameters
Status code: 204
None
Example Requests
Cancel a scheduled task.
DELETE https://{Endpoint}/v3/0549b4a43100d4f32f51c01c2fe4acdb/scheduled-jobs/56d3c1138dcf4f1da73b0170700c78d0
Example Responses
None
Status Codes
See Status Codes.
Error Codes
See Error Codes.
Parent topic: Task Management