Updated on 2026-11-11 GMT+08:00

Suspending Scheduling Tasks in Batches

Function

Suspend scheduling tasks in batches.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    dws:cluster:pauseOperationalTask

    Write

    cluster *

    • g:ResourceTag/<tag-key>

    • g:EnterpriseProjectId

    dws:operationalTask:operate

    -

URI

POST /v1/{project_id}/clusters/{cluster_id}/operational-tasks/batch-pause

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition:

Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

Constraints:

None

Range:

None

Default Value:

None

cluster_id

Yes

String

Definition:

Cluster ID For details about how to obtain the cluster ID, see Obtaining the Cluster ID.

Constraints:

None

Range:

None

Default Value:

None

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

task_ids

No

Array of strings

Definition:

Task ID list

Constraints:

None

Range:

The value cannot be empty.

Default Value:

null

Response Parameters

Status code: 200

Request succeeded.

None

Example Requests

Resume a scheduling task.

post https://{Endpoint}/v1/169439ece752470aa5171633e9d3e47f/clusters/50aee999-9215-4dd0-a142-254ac6bf80e7/operational-tasks/batch-pause

{
  "task_ids" : [ "g6aa82ba1fc9748389b613e8da13e2fe9" ]
}

Example Responses

Status code: 200

{ }

Status Codes

Status Code

Description

200

Request succeeded.

400

Request error.

401

Authentication failed.

403

No operation permissions.

404

No resources found.

500

Internal service error.

503

Service unavailable.