Retrieves the script for adding existing nodes to a cluster node pool. If you need to add existing ENS instances to an ECK cluster as worker nodes, or re-add node instances to a node pool after removing worker nodes, ECK supports manually adding existing nodes to a node pool. You can call the DescribeClusterAttachScripts operation to retrieve the script for adding existing nodes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeClusterAttachScripts |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
eck-11111111 |
| NodepoolId |
string |
Yes |
The node pool ID. |
np68mi5y1dd748ky37ojo2kqdrz |
| Options |
string |
No |
The optional parameters. |
{\"key1\":\"val1\"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| Script |
string |
The cluster onboarding script. |
Y2QgWnhiU0o= |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"Script": "Y2QgWnhiU0o="
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.