---
title: "Get kubernetes ingresses at the cluster level"
method: GET
path: "/kubernetes/{id}/ingresses"
tags: ["kubernetes"]
---

# Get kubernetes ingresses at the cluster level

`GET /kubernetes/{id}/ingresses`

Get kubernetes ingresses at the cluster level for the provided environment.
**Access policy**: Authenticated user.

## Path parameters

- `id` integer, required

## Query parameters

- `withServices` boolean

## Response `200`

Success

- KubernetesK8sIngressInfo[]
  - `Annotations` object
  - `ClassName` string
  - `CreationDate` string
  - `Hosts` string[]
  - `Labels` object
  - `Name` string
  - `Namespace` string
  - `Paths` KubernetesK8sIngressPath[]
    - `HasService` boolean
    - `Host` string
    - `IngressName` string
    - `Path` string
    - `PathType` string
    - `Port` integer
    - `PortName` string
    - `ServiceName` string
  - `TLS` KubernetesK8sIngressTLS[]
    - `Hosts` string[]
    - `SecretName` string
  - `Type` string
  - `UID` string

## Other responses

- `400` — Invalid request payload, such as missing required fields or fields not meeting validation criteria.
- `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 ingresses.

---

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