GEThttps://api.spotinst.io/aws/instancePotentialSavings?region={REGION}&instanceIds={instance-1},{instance-2}&accountId={ACCOUNT}
Describe Potential Savings for the listed instances. You can provide multiple instance Ids separated by a comma.
The response will provide Potential monthly savings in USD
URL Parameters
Parameter | Type | Description |
---|---|---|
ACCOUNT_ID * | String | Your Spotinst accountId associated with your token Example: act-123abc |
REGION * | String | The AWS Region Example: us-east-1 |
instnace * | String | The instance id Example: i-1234567 |
Request
Headers
{ "Content-Type": "application/json", "Authorization": "Bearer ${token}" }
Response - 200
Headers
{ "Content-Type": "application/json" }
Body
{ "request": { "id": "cb2faaff-6c08-49c1-92af-822a117b1303", "url": "/aws/instancePotentialSavings?instanceIds=i-08674ba9a6ddb73f4%2Ci-0973dc7a755d34894®ion=us-west-2", "method": "GET", "timestamp": "2018-01-24T17:21:11.291Z" }, "response": { "status": { "code": 200, "message": "OK" }, "kind": "spotinst:cs:aws:potentialSavings", "items": [ { "resourceType": "EC2Instance", "name": "i-08674ba9a6ddb73f4", "instances": 1, "instanceTypes": [ "t2.medium" ], "potentialSavings": 28 }, { "resourceType": "EC2Instance", "name": "i-0973dc7a755d34894", "instances": 1, "instanceTypes": [ "m4.large" ], "potentialSavings": 60 } ], "count": 2 } }