latestOpenAPI 3.0.02026-08-2045003.8 MB

72813baf8d47

Ocean Automatic Rightsizing

Get Ocean Right-Sizing Savings

Get right-sizing savings from downsizing operations for an Ocean cluster.

post/ocean/{oceanId}/rightSizing/savings

Parameters

#/paths/~1ocean~1%7BoceanId%7D~1rightSizing~1rule/get/parameters/0 — unresolved $ref
#/paths/~1azure~1costs/get/parameters/0 — unresolved $ref

Request body

clusterIdentifierstring required

Identifier of the Ocean cluster.

startTimestring required

Start date value using either the date format "yyyy-MM-dd'T'HH:mm:ss'Z'" or ms "1494751821472".

endTimestring required

End date value using either the date format "yyyy-MM-dd'T'HH:mm:ss'Z'" or ms "1494751821472".

Example request

{
  "clusterIdentifier": "my-cluster",
  "startTime": "2025-01-20T11:35:02.745Z",
  "endTime": "2025-01-30T11:30:01.745Z",
  "workloads": {
    "namespaceName1": [
      {
        "name": "workloadName1",
        "workloadType": "Deployment"
      },
      {
        "name": "workloadName2",
        "workloadType": "DaemonSet"
      }
    ],
    "namespaceName2": [
      {
        "name": "workloadName3",
        "workloadType": "StatefulSet"
      },
      {
        "name": "workloadName4",
        "workloadType": "Deployment"
      }
    ]
  }
}