GEThttps://api.spotinst.io/ocean/aws/k8s/cluster/{OCEAN_ID}/rightSizing/suggestion?namespace={NAMESPACE_NAME}&accountId={ACCOUNT_ID}
Get right-sizing recommendations for Ocean cluster.
URL Parameters
Parameter | Type | Description |
---|---|---|
OCEAN_ID * | String | The Ocean cluster ID you want to query Example: oseg-1234 |
NAMESPACE_NAME | String | For K8S, namespace is an optional query param which filters the retrieved resources |
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
{ "suggestions": [ { "namespace": "myNamespace", "deploymentName": "coredns", "suggestedCPU": 0.12225669, "suggestedMemory": 550, "requestedCPU": 5.5, "requestedMemory": 1024 }, { "namespace": "myNamespace", "deploymentName": "spark", "suggestedCPU": 0.13, "suggestedMemory": 250, "requestedCPU": 2.5, "requestedMemory": 512 } ] }