fbpx
GEThttps://api.spotinst.io/aws/potentialSavings?accountId={ACCOUNT_ID}

Describe Potential Savings for AWS resources: ASG (Auto-scaling groups), Beanstalk, ELB, ECS, EMR and tagged instances

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
Request

Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:cs:aws:potentialSavings",
    "items": [
      {
        "resourceType": "Auto Scaling Group",
        "name": "Prod_ASG",
        "region": "us-west-1"
        "instances": 5,
        "instanceTypes": [
          "c4.4xlarge"
        ],
        "potentialSavings": 2700
      },
      {
        "resourceType": "Elastic Load Balancer",
        "name": "Dev_ELB",
        "region": "us-west-1"
        "instances": 2,
        "instanceTypes": [
          "c4.2xlarge"
        ],
        "potentialSavings": 541
      }
    ]
  }
}