fbpx
GEThttps://api.spotinst.io/azure/costs?&fromDate={FROM_DATE}&toDate={TO_DATE}&accountId={ACCOUNT_ID}

Get costs per time filter.

URL Parameters

Parameter Type Description
FROM_DATE String

data values following either a date format (yyyy-mm-dd ; 2016-11-20) or Unix Timestamp (1494751821472)

TO_DATE String

data values following either a date format (yyyy-mm-dd ; 2016-11-20) or Unix Timestamp (1494751821472)

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
{
  Content-Type: application/json
}
Body
Copied!
Downloaded!
{
	"status": {
		"code": 200,
		"message": "OK"
	},
	"kind": "spotinst:azure:costs",
	"items": [
	  {
		"lowPriority": {
		"runningHours": 1470.80,
		"actualCosts": 107.30,
		"potentialCosts": 378.41,
		"savingsPercentage": 71.64
		}
	  }
	],
	"count": 1
}