GEThttps://api.spotinst.io/ocean/aws/ecs/cluster/{OCEAN_ID}/rightSizing/suggestion?accountId={ACCOUNT_ID}

Get right-sizing recommendations for an Ocean cluster.

URL Parameters

Parameter Type Description
OCEAN_ID * String

The Ocean cluster ID you want to query

Example: oseg-1234
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:ocean:aws:ecs:cluster:rightSizing:resourceSuggestion",
    "items": [
      {
        "suggestedMemory": 2,
        "requestedMemory": 100,
        "serviceName": "sg-test",
        "suggestedCpu": 0,
        "requestedCpu": 128
      },
      {
        "suggestedMemory": 3,
        "requestedMemory": 250,
        "serviceName": "almog-test",
        "suggestedCpu": 0,
        "requestedCpu": 250
      }
    ],
    "count": 2
  }
}