Create an Instance for an Instance Group
post
/api/v2/instance_groups/{id}/instances/
Make a POST request to this resource with the following instance fields to create a new instance associated with this instance group.
-
capacity_adjustment
: (decimal, default=1
) -
enabled
: (boolean, default=True
) managed_by_policy
: (boolean, default=True
)
Add Instances for an Instance Group:
Make a POST request to this resource with only an id
field to associate an
existing instance with this instance group.
Remove Instances from this Instance Group:
Make a POST request to this resource with id
and disassociate
fields to
remove the instance from this instance group
without deleting the instance.
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : schema
Example:
{
"disassociate":true,
"id":"1"
}
Response
Supported Media Types
- application/json
201 Response
400 Response
Example Response (application/json)
{
"msg":"Cannot change instance group membership of control-only node: control."
}