Adds existing ECS instances to a node pool in an ACK cluster as worker nodes, or re-adds removed node instances to a node pool.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:AttachInstancesToNodePool |
update |
*Cluster
|
None | None |
Request syntax
POST /clusters/{ClusterId}/nodepools/{NodepoolId}/attach HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
c82e6987e2961451182edacd74faf**** |
| NodepoolId |
string |
Yes |
The node pool ID. |
np31da1b38983f4511b490fc62108a**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| instances |
array |
No |
The list of ECS instances to be added. |
|
|
string |
No |
The instance ID of the ECS instance to be added. |
i-2zed0sswuau6o89b**** |
|
| password |
string |
No |
The SSH logon password for the instances to be added. |
****** |
| format_disk |
boolean |
No |
Specifies whether to store container data and images on data cloud disks. Valid values:
Default value: Data cloud disk mounting rules:
Note
If you choose to store data on data cloud disks and the ECS instance already has data cloud disks mounted, the existing data on the data cloud disks will be lost. Back up your data beforehand. |
false |
| keep_instance_name |
boolean |
No |
Specifies whether to retain the original instance name. Valid values:
Default value: |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| request_id |
string |
The request ID. |
D7631D83-6E98-1949-B665-766A62xxxxxx |
| task_id |
string |
The task ID. |
T-5a54309c80282e39eaxxxxxx |
Examples
Success response
JSON format
{
"request_id": "D7631D83-6E98-1949-B665-766A62xxxxxx",
"task_id": "T-5a54309c80282e39eaxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.