fbpx
PUThttps://api.spotinst.io/aws/ec2/group/{GROUP_ID}/capacity?accountId={ACCOUNT_ID}

Update the capacity of an Elastigroup.

URL Parameters

Parameter Type Description
GROUP_ID * String

The ID of the Elastigroup to update.

Example: sig-12345
ACCOUNT_ID * String

The Account ID of the Elastigroup to update.

Example: act-67890
Optional: You can add the shouldResumeStateful=true query parameter to the URL. This resumes Stateful instances in the Elastigroup upon scale up/ capacity changes. URL Example: /aws/ec2/group/{GROUP_ID}/capacity?accountId={ACCOUNT_ID}?shouldResumeStateful=true.
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
	"capacity": {
		"minimum":1,
  		"maximum":10,
		"target":2
	}
}
Response

Body
Copied!
Downloaded!
{
    "request": {
        "id": "3ab3fdf7-3af3-46db-9e63-b88cfdac058c",
        "url": "/aws/ec2/group/sig-b255ac/capacity?accountId=act-567c21",
        "method": "PUT",
        "timestamp": "2018-08-20T15:31:12.730Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:aws:ec2:group:capacity",
        "items": [
            {
                "minimum": 1,
                "maximum": 10,
                "target": 2
            }
        ],
        "count": 1
    }
}