fbpx
GEThttps://api.spotinst.io/compute/azure/group/{GROUP_ID}?accountId={ACCOUNT_ID}

 

                     Describes the current status of a specific Elastigroup

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elasticgroup id you want to get a status for

Example: sig-12345
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request - Update group

Headers
{  
   "Content-Type": "application/json",
   "Authorization": "Bearer ${token}" 
}
Response - 200

Headers
{  
  "request": {
    "id": "90c94dce-91ba-4f4e-b0df-13bed0303de5",
    "url": "/compute/azure/group/sig-737cc5c5/status",
    "method": "GET",
    "timestamp": "2017-06-25T11:47:40.933Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:compute:azure:group:status",
    "items": [
      {
        "ipAddress": "10.0.0.6",
        "region": "westus",
        "state": "idle",
        "vmSize": "standard_a1",
        "id": "tvm-2434664350_26-20170625t091105z",
        "lifeCycle": "dedicated",
        "createdAt": "2017-06-25T09:12:00.000+0000"
      },
      {
        "ipAddress": "10.0.0.4",
        "region": "westus",
        "state": "idle",
        "vmSize": "standard_a1",
        "id": "tvm-2434664350_27-20170625t111017z",
        "lifeCycle": "dedicated",
        "createdAt": "2017-06-25T11:11:00.000+0000"
      },
      {
        "ipAddress": "10.0.0.6",
        "region": "westus",
        "state": "idle",
        "vmSize": "standard_a1",
        "id": "tvm-3426989531_41-20170625t091117z-p",
        "lifeCycle": "low_priority",
        "createdAt": "2017-06-25T09:12:00.000+0000"
      },
      {
        "ipAddress": "10.0.0.4",
        "region": "westus",
        "state": "idle",
        "vmSize": "standard_a1",
        "id": "tvm-3426989531_42-20170625t111018z-p",
        "lifeCycle": "low_priority",
        "createdAt": "2017-06-25T11:11:00.000+0000"
      }
    ],
    "count": 4
  }
}
Body
Copied!
Downloaded!
{
"request": {
    "id": "4a0d5084-0b41-4255-82e5-d64a8232d7cc",
    "url": "/compute/azure/group/sig-98765",
    "method": "DELETE",
    "time": "2015-06-28T15:52:45.772Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}