Elastigroup AWS

Instance Status

Get the current instance status Possible status values - Active and Terminating

get/aws/ec2/instance/{instanceId}

Request

  • Base URL
    https://api.spotinst.io
  • URL
    https://api.spotinst.io/aws/ec2/instance/{instanceId}
  • Auth
    HTTP bearer

Path parameters

instanceIdstring required

The instance ID you want to query

Query parameters

accountIdstring

ID of the account associated with your token

Response

Instance Status Response

Example response

{
  "request": {
    "id": "ff3e1e5b-91b8-42fa-8267-b988efc7f662",
    "url": "/aws/ec2/instance/i-123456",
    "method": "GET",
    "timestamp": "2015-06-29T13:01:55.060Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:instance",
    "items": [
      {
        "instanceId": "i-326129e1",
        "lifeCycleState": "ACTIVE"
      }
    ],
    "count": 1
  }
}

Changes

No recorded changes to this operation across all 12 revisions of this API.