This API is used to bind nodes in a logical subpool to another logical subpool when node binding is enabled for a physical dedicated pool.
POST /v2/{project_id}/pools/{pool_name}/nodes/batch-bind
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. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
nodes |
Yes |
Array of BindNodeItem objects |
List of nodes to be bound with another pool. |
drain |
No |
Boolean |
Whether to drain the node to be bound with another pool. true: Drain the node. |
Status code: 404
Parameter |
Type |
Description |
|---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Bind nodes to logical subpool pool-a26d-prjid.
POST /v2/{project_id}/pools/{pool_name}/nodes/batch-bind
{
"nodes" : [ {
"name" : "os-node-created-8888g",
"quotaName" : "pool-a26d-prjid"
} ]
}
Status code: 200
OK.
{ }
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.