Elastigroup Azure Scale Set VMs

Get Costs Per Account

Get costs per time filter.

get/azure/costs

Request

  • Base URL
    https://api.spotinst.io
  • URL
    https://api.spotinst.io/azure/costs
  • Auth
    HTTP bearer

Query parameters

accountIdstring required

The ID of the account associated with your token.

fromDatestring required

Get items on or after this date (ISO 8601 or Unix timestamp)

toDatestring required

Get items on or before this date (ISO 8601 or Unix timestamp)

Response

Costs Per Account Response

Example response

{
  "request": {
    "id": "67582d0c-108b-4ef7-9fdc-d39678a30844",
    "url": "/azure/costs",
    "method": "GET",
    "timestamp": "2018-01-07T07:30:58.622Z"
  },
  "response": {
    "kind": "spotinst:azure:costs",
    "items": [
      {
        "lowPriority": {
          "runningHours": 1470.8,
          "actualCosts": 107.3,
          "potentialCosts": 378.41,
          "savingsPercentage": 71.64
        }
      }
    ],
    "count": 1
  }
}

Changes

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