Elastigroup AWS
Get Costs per Elastigroup
Get financial information on a specific Elastigroup, return only Spot costs.
get/aws/ec2/group/{groupId}/costs
Request
- Base URLhttps://api.spotinst.io
- URLhttps://api.spotinst.io/aws/ec2/group/{groupId}/costs
- AuthHTTP bearer
Query parameters
fromDatestring required
Data values following either a date format (YYYY-MM-DDTHH:mm:ss.SSSZ ; 2016-01-10T00:00:00.000Z) or Unix seconds Timestamp (1494751821)
toDatestring required
Data values following either a date format (YYYY-MM-DDTHH:mm:ss.SSSZ ; 2016-01-10T00:00:00.000Z) or Unix seconds Timestamp (1494751821)
aggregationPeriodstring
Optional. The time period over which data is aggregated. Can only be "daily". For example, the figures in each data set are per day
accountIdstring
ID of the account associated with your token
Parameters
#/paths/~1aws~1ec2~1group~1%7BgroupId%7D/put/parameters/0 (unresolved $ref)
Response
Costs Per Elastigroup Response
Example response
{
"request": {
"id": "46642c7d-bc29-417d-8ce4-79626f00c63c",
"url": "/aws/ec2/group/sig-48d79900/costs?fromDate=2018-03-06&toDate=2019-02-27",
"method": "GET",
"timestamp": "2016-01-21T17:12:51.451Z"
},
"response": {
"status": {
"code": 200,
"message": "OK"
},
"kind": "spotinst:aws:ec2:group:stats",
"items": [
[
{
"running": {
"unit": "hours"
},
"savings": {
"unit": "percentage"
}
}
]
],
"count": 1
}
}Changes
No recorded changes to this operation across all 12 revisions of this API.