---
title: "GET /api/v1/providers/openstack/tenants"
method: GET
path: "/api/v1/providers/openstack/tenants"
tags: ["openstack"]
---

# GET /api/v1/providers/openstack/tenants

`GET /api/v1/providers/openstack/tenants`

## 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/v1/providers/openstack/tenants/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists tenants from openstack

## Headers

- `Username` string
- `Password` string
- `Domain` string
- `DatacenterName` string
- `ApplicationCredentialID` string
- `ApplicationCredentialSecret` string
- `OIDCAuthentication` boolean
- `Credential` string

## Response `200`

OpenstackTenant

- OpenstackTenant[]
  - `id` string: Id uniquely identifies the current tenant
  - `name` string: Name is the name of the tenant

## Other responses

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