---
title: "Get max CPU and memory limits of all nodes within k8s cluster"
method: GET
path: "/kubernetes/{id}/max_resource_limits"
tags: ["kubernetes"]
---

# Get max CPU and memory limits of all nodes within k8s cluster

`GET /kubernetes/{id}/max_resource_limits`

Get max CPU and memory limits (unused resources) of all nodes within k8s cluster.
**Access policy**: Authenticated user.

## Path parameters

- `id` integer, required

## Response `200`

Success

- PortainerK8sNodesLimits

## Other responses

- `400` — Invalid request
- `401` — Unauthorized access - the user is not authenticated or does not have the necessary permissions. Ensure that you have provided a valid API key or JWT token, and that you have the required permissions.
- `403` — Permission denied - the user is authenticated but does not have the necessary permissions to access the requested resource or perform the specified operation. Check your user roles and permissions.
- `404` — Unable to find an environment with the specified identifier.
- `500` — Server error occurred while attempting to retrieve nodes limits.

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
