fbpx
GEThttps://api.spotinst.io/gcp/gce/group/{GROUP_ID}/status?accountId={ACCOUNT_ID}

Describes the current status of a specific Elastigroup – entailing information regarding running instance and their status

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup 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 - Get Status

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
 "request": {
   "id": "fe2a174d-252e-467c-8579-c1f79336c652",
   "url": "/gcp/gce/group/sig-123456/status?accountId=act-a1234567",
   "method": "GET",
   "timestamp": "2018-03-11T15:41:09.181Z"
 },
 "response": {
   "status": {
     "code": 200,
     "message": "OK"
   },
   "kind": "spotinst:gcp:gce:group:status",
   "items": [
     {
       "machineType": "n1-standard-2",
       "zone": "us-central1-f",
       "instanceName": "sin-12w357",
       "lifeCycle": "PREEMPTIBLE",
       "statusName": "running",
       "privateIpAddress": "10.10.1.2",
       "publicIpAddress": null,
       "updatedAt": "2018-03-11T15:41:05.000Z",
       "createdAt": "2018-03-11T01:14:06.000Z"
     }
   ],
   "count": 1
 }
}