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

Get historical data on events that happened in a specific Elastigroup like update, scaling activities, creation of new instances, etc.

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup id you want to query

Example: sig-12345
START_DATE * String

Starting date to fetch the events from

Example: 2016-10-01
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
   "request": {
       "id": "a0e7f8db-ade2-46eb-8e39-ad660fc3d2ec",
       "url": "/gcp/gce/group/sig-576g654/events?fromDate=2018-01-01",
       "method": "GET",
       "timestamp": "2018-03-11T15:46:48.474Z"
   },
   "response": {
       "status": {
           "code": 200,
           "message": "OK"
       },
       "kind": "spotinst:gcp:gce:group:event",
       "items": [
           {
               "groupId": "sig-576g654",
               "eventType": "RollFinished",
               "createdAt": "2018-03-01T09:58:16.000+0000",
               "subEvents": [
                   {
                       "type": "rollInfo",
                       "id": "sbgd-1234567",
                       "groupId": "sig-576g654",
                       "currentBatch": 1,
                       "status": null,
                       "numOfBatches": 1,
                       "gracePeriod": 300,
                       "createdAt": null
                   }
               ]
           },
           {
               "groupId": "sig-576g6549",
               "eventType": "DetachInstances",
               "createdAt": "2018-03-01T09:58:16.000+0000",
               "subEvents": []
           }
       ],
       "count": 2
   }
}