This API is used to add an ECS to an ECS group. ECSs in the same group are automatically deployed on different hosts if possible.
POST /v1/{project_id}/cloudservers/os-server-groups/{server_group_id}/action
Table 2 describes the request parameters.
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
add_member |
Yes |
Object |
Specifies the information of the ECS to be added to an ECS group. For details, see Table 3. |
None
Adds a specified ECS to an ECS group.
POST https://{endpoint}/v1/{project_id}/cloudservers/os-server-groups/{server_group_id}/action
{
"add_member": {
"instance_uuid":"34dac9a0-c4a7-457b-bab2-e2c696e0e401"
}
}
Status code 200, indicating that the operation is successful
See Error Codes.