---
title: "Get Kubernetes ingress classes"
method: GET
path: "/kubernetes/{id}/ingressclasses"
tags: ["kubernetes"]
---

# Get Kubernetes ingress classes

`GET /kubernetes/{id}/ingressclasses`

Get the list of Kubernetes ingress classes (cluster-scoped), as read
models, distinct from the ingress controllers returned by /ingresscontrollers.
**Access policy**: Authenticated user.

## Path parameters

- `id` integer, required

## Response `200`

Success

- KubernetesK8sIngressClass[]
  - `Annotations` object
  - `Controller` string
  - `IsDefault` boolean
  - `Name` string

## Other responses

- `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.
- `500` — Server error occurred while attempting to retrieve the ingress classes.

---

[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)
