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
|
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
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
scope |
Yes |
String |
Job type to be retried. |
Response Parameters
Status code: 400
|
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.