Updated on 2024-10-30 GMT+08:00

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 Redis
  • GeminiDB Mongo
  • GeminiDB Cassandra

URI

DELETE https://{Endpoint}/v3/{project_id}/scheduled-jobs/{job_id}

Table 1 Path parameters

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

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

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

For details, see Status Codes.

Error Codes

For details, see Error Codes.