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

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup ID you want to suspend

Example: sig-12345
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc

Available Body Attributes


Attribute Type Description
processes * Array

The list of processes to suspend. Valid values are: AUTO_SCALE, AUTO_HEALING, OUT_OF_STRATEGY, PREVENTIVE_REPLACEMENT, REVERT_PREFERRED

Request

Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
  "processes": [
    "AUTO_SCALE",
    "AUTO_HEALING",
    “OUT_OF_STRATEGY”, 
    “PREVENTIVE_REPLACEMENT”, 
    “REVERT_PREFERRED”
  ]
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "0bb5db74-2457-4a34-b8f3-174e6bf5578e",
    "url": "/aws/ec2/group/sig-12345/suspension",
    "method": "POST",
    "timestamp": "2016-06-19T08:41:57.516Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:suspension",
    "items": [
      {
        "groupId": "sig-12345",
        "processes": [
          "AUTO_SCALE"
        ]
      }
    ],
    "count": 1
  }
}