添加已有实例到集群。
说明
添加过程中会替换系统盘,需要提前做好数据备份。
请求信息
请求行 RequestLinePOST
/clusters/{cluster_id}/attach HTTP/1.1
请求行参数 URI Param
{
"password": "ECS实例root登录密码",
"instances": "要添加的实例数组",
"ecs_image_id": "操作系统镜像",
"release_eip_flag": "是否需要在集群配置完成后释放EIP"
}
HTTP/1.1 202 OK
{
"list": [
{
"code": "200",
"instanceId": "i-xxx",
"message": "successful"
},
{
"code": "200",
"instanceId": "i-yyy",
"message": "successful"
}
],
"task_id": "T-5a544aff80282e39ea000039"
}
{
"list": [
{
"code": "200",
"instanceId": "i-2zee3oiwcyoz7kwdo8bt",
"message": "successful"
},
{
"code": "200",
"instanceId": "i-2ze0lgm3y6iylcbtcypf",
"message": "successful"
}
],
"task_id": "T-5a544aff80282e39ea000039"
}
HTTP/1.1 202 Accepted
<公共响应头>
{
"list": [
{
"code": "200",
"instanceId": "i-2zee3oiwcyoz7kwdo8bt",
"message": "successful"
},
{
"code": "200",
"instanceId": "i-2ze0lgm3y6iylcbtcypf",
"message": "successful"
}
],
"task_id": "T-5a544aff80282e39ea000039"
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。