Updated on 2025-11-28 GMT+08:00

Stopping Instances

Function

This API is used to stop instances.

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, no identity policy-based permission required for calling this API.

URI

POST /v2/{project_id}/quality/instances/batch-stop

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain it, see Project ID and Account ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

workspace

Yes

String

DataArts Studio workspace ID. For details about how to obtain it, see Instance ID and Workspace ID.

X-Auth-Token

Yes

String

IAM token. For details about how to obtain it, see Authentication.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

[items]

Yes

Array of longs

IDs of the instances to be stopped

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message

data

Object

Data content, which can be an object or an array.

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message

data

Object

Data content, which can be an object or an array.

Status code: 406

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message

data

Object

Data content, which can be an object or an array.

Status code: 500

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message

data

Object

Data content, which can be an object or an array.

Example Requests

Stop instances whose IDs are 1317151269261262848 and 1317151258234322945.

POST https://{endpoint}/v2/{project_id}/quality/instances/batch-stop

[ 1317151269261262848, 1317151258234322945 ]

Example Responses

Status code: 200

The API call is successful. InstanceVO is returned.

{
  "error_code" : "DLG.2700",
  "error_msg" : "Successful."
}

Status Codes

Status Code

Description

200

The API call is successful. InstanceVO is returned.

400

BadRequest

406

NOT ACCEPTABLE

500

INTERNAL SERVER ERROR