---
title: "List allowed registries."
method: GET
path: "/api/v2/allowedregistries"
tags: ["allowedregistry"]
---

# List allowed registries.

`GET /api/v2/allowedregistries`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/docs/api/v2/allowedregistries/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

AllowedRegistry

- AllowedRegistry[]
  - `name` string
  - `spec` AllowedRegistrySpec
    - `registryPrefix` string: RegistryPrefix contains the prefix of the registry which will be allowed. User clusters will be able to deploy only images which are prefixed with one of the allowed image registry prefixes.

## Other responses

- `401`: EmptyResponse is a empty response
- `403`: EmptyResponse is a empty response
- `default`: errorResponse

---

[API](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api.md) - [All operations](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/revisions/815b9bf19db5?raw)
