---
updatedAt: 2026-10-28T15:16:17.000Z
agentTools:
  projectIndex: https://docs.cast.ai/llms.txt
---

# Gets the rightsizing summary for the cluster.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "servers": [
    {
      "url": "https://api.cast.ai/",
      "description": "US endpoint"
    },
    {
      "url": "https://api.eu.cast.ai/",
      "description": "EU endpoint"
    },
    {
      "url": "https://api.india.cast.ai/",
      "description": "India endpoint"
    }
  ],
  "info": {
    "title": "CAST.AI API documentation",
    "version": "1.0.0",
    "description": "### Feature maturity indicators (may appear on resources, operations and request/response fields)\n - **(BETA)** - new or experimental features, subject to change\n - **(Deprecated)** - outdated or replaced features (a reason and removal date will be provided in the description)\n"
  },
  "tags": [
    {
      "name": "ClusterReportAPI"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v1/cost-reports/clusters/{clusterId}/rightsizing-summary": {
      "get": {
        "operationId": "ClusterReportAPI_GetRightsizingSummary",
        "parameters": [
          {
            "in": "path",
            "name": "clusterId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/costreport.v1beta1.GetRightsizingSummaryResponse"
                }
              }
            },
            "description": "A successful response."
          }
        },
        "summary": "Gets the rightsizing summary for the cluster.",
        "tags": [
          "ClusterReportAPI"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    },
    "schemas": {
      "costreport.v1beta1.GetRightsizingSummaryResponse": {
        "description": "Defines rightsizing summary response.",
        "properties": {
          "rightsizingRecommendation": {
            "$ref": "#/components/schemas/costreport.v1beta1.RightsizingRecommendation"
          }
        },
        "type": "object"
      },
      "costreport.v1beta1.RightsizingRecommendation": {
        "description": "RightsizingRecommendation defines a rightsizing recommendation.",
        "properties": {
          "summary": {
            "$ref": "#/components/schemas/costreport.v1beta1.RightsizingRecommendation.Summary"
          }
        },
        "type": "object"
      },
      "costreport.v1beta1.RightsizingRecommendation.Summary": {
        "description": "Summary defines a summary of the recommendation.",
        "properties": {
          "cpuCoresDifference": {
            "description": "Difference of cpu cores between current workload requests and recommended configuration.",
            "format": "double",
            "type": "number"
          },
          "ramBytesDifference": {
            "description": "Difference of ram bytes between current workload requests and recommended configuration.",
            "format": "double",
            "type": "number"
          },
          "efficiency": {
            "type": "string"
          },
          "cpuEfficiency": {
            "title": "Defines cpu efficiency ratio of all the cluster's workloads which have requests defined",
            "type": "string"
          },
          "memoryEfficiency": {
            "title": "Defines memory efficiency ratio of all the cluster's workloads which have requests defined",
            "type": "string"
          }
        },
        "required": [
          "cpuEfficiency",
          "efficiency",
          "memoryEfficiency"
        ],
        "type": "object"
      }
    }
  }
}
```