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

Stop an existing deployment.

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup ID you want to deploy

Example: sig-12345
ROLL_ID * String

The deployment id you want to stop

Example: sbgd-9876
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc

Body Attributes


Attribute Type Description
roll.status * String

Set the status of the group to “STOPPED”

Request

Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
  "roll": {
    "status": "STOPPED"
  }
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "3213e42e-455e-4901-a185-cc3eb65fac5f",
    "url": "/aws/ec2/group/sig-12345/roll/sbgd-dfb956b4",
    "method": "PUT",
    "time": "2016-02-10T15:49:11.911Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:group:roll"
  }
}