Delete nodes in a specific resource pool. At least one node must be reserved in the resource pool.
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
POST /v2/{project_id}/pools/{pool_name}/nodes/batch-delete
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 name. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
deleteNodeNames |
Yes |
Array of strings |
Names of the nodes to be deleted. |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
POST /v2/{project_id}/pools/{pool_name}/nodes/batch-delete { "deleteNodeNames" : [ "os-node-created-mnmcf" ] }
Status code: 404
Not Found.
{ "error_code" : "ModelArts.50015001", "error_msg" : "pool not found" }
Status Code |
Description |
---|---|
200 |
OK. |
404 |
Not Found. |
See Error Codes.