Elastigroup AWS
Detailed Cost
Get detailed financial information on a specific Elastigroup, for all lifecycles.
get/aws/ec2/group/{groupId}/costs/detailed
Request
- Base URLhttps://api.spotinst.io
- URLhttps://api.spotinst.io/aws/ec2/group/{groupId}/costs/detailed
- 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
Detailed Cost Response
Example response
{
"request": {
"id": "46642c7d-bc29-417d-8ce4-79626f00c63c",
"url": "/aws/ec2/group/sig-12345/costs/detailed",
"method": "GET",
"timestamp": "2016-01-21T17:12:51.451Z"
},
"response": {
"status": {
"code": 200,
"message": "OK"
},
"kind": "spotinst:aws:ec2:group",
"items": [
{
"groupId": "sig-12345",
"instanceId": "i-326129e1",
"instanceType": "m3.medium",
"availabilityZone": "us-east-1a",
"running": {
"value": 4,
"unit": "hours"
},
"savings": {
"value": 4,
"unit": "percentage"
},
"costs": {
"actual": 0.268,
"potential": 0.268
}
}
],
"count": 1
}
}Changes
No recorded changes to this operation across all 12 revisions of this API.