fbpx
POSThttps://api.spotinst.io/aws/ec2/group/{GROUP_ID}/scale/suspendPolicy?policyName={POLICY_NAME}&accountId={ACCOUNT_ID}

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup ID you want to suspend

Example: sig-12345
POLICY_NAME * String

Policy Name of scaling policy to suspend.

ACCOUNT_ID * String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

Headers
{
    "Authorization": "Bearer ${token}",
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "suspension": {
    "ttlInMinutes": 10
   }
}
Attribute Type Description
suspension Object

suspension.ttlInMinutes Integer

Set TTL in minutes. min value: 1 (one minute). max value: 10080 (one week)

Response - 200

Headers
{
    "Authorization": "Bearer ${token}",
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "0bb5db74-2457-4a34-b8f3-174e6bf5578e",
    "url": "/aws/ec2/group/sig-12345/scale/suspendPolicy?accountId=act-1234567&policyName=myscalingpolicyname",
    "method": "POST",
    "timestamp": "2016-06-19T08:41:57.516Z"
  },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:aws:ec2:suspension",
        "items": [
		{
            "groupId": "sig-12345",
            "policyName": "myscalingpolicyname",
            "state": "suspended",
            "expiresAt": "2016-06-19T08:51:00:00Z"
		}
        ],
        "count": 1
    }
}