Help Center/ ModelArts/ API Reference/ Resource Pool Management/ Retrying the Job Type That Fails to Be Enabled
Updated on 2025-05-30 GMT+08:00

Retrying the Job Type That Fails to Be Enabled

Function

This API is used to retry the job type that fails to be enabled.

URI

POST /v2/{project_id}/pools/{pool_name}/retry-scope

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID and Name.

pool_name

Yes

String

Resource pool ID. The value is the metadata.name field in the resource pool details.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

scope

Yes

String

Job type to be retried.

Response Parameters

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

Retry the Infer job type.

/v2/{project_id}/pools/{pool_name}/retry-scope

{
  "scope" : "Infer"
}

Example Responses

Status code: 200

OK.

{ }

Status code: 400

Bad request.

{
  "error_code" : "ModelArts.50004000",
  "error_msg" : "Bad request. The pool pool-dly-op-0c2098ebae80d3e22f31c011e23a97cd scope Train cannot be enabled."
}

Status Codes

Status Code

Description

200

OK.

400

Bad request.

Error Codes

See Error Codes.