fbpx
GEThttps://api.spotinst.io/compute/azure/group/{GROUP_ID}/events?fromDate={START_DATE}&toDate={END_DATE}

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

  

 

Parameters

Parameter Type Description
GROUP_ID * String

The Elasticgroup id you want to query

Example: sig-12345
ACCOUNT_ID String

Your Spotinst accountid associated with your token

Example: act-123abc
START_DATE * Date

Starting date to fetch the events from

Example: 2018-02-03
END_DATE * Date

End date to fetch the events from

Example: 2019-02-03
Request - Update group

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

Headers
{
  Content-Type: application/json
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "d7a5d78c-7883-46f5-b1db-5991f4e051d8",
    "url": "/azure/compute/group/sig-88447418/events?spotinstAccountId=act-57762761&fromDate=1420070000000",
    "method": "GET",
    "timestamp": "2017-06-25T12:44:15.340+0000"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "azure:compute:group:event",
    "items": [
      {
        "groupId": "sig-88447418",
        "eventType": "create_group",
        "createdAt": "2017-06-25T12:32:46.000+0000"
      },
      {
        "groupId": "sig-88447418",
        "eventType": "update_group",
        "createdAt": "2017-06-25T12:41:13.000+0000"
      }
    ],
    "count": 2
  }
}