---
title: "POST /{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig"
method: POST
path: "/{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig"
tags: ["ProvisionedClusters"]
---

# POST /{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig

`POST /{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Lists the user credentials of the provisioned cluster (can only be used within private network)

## Path parameters

- `connectedClusterResourceUri` string, required

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` (unresolved $ref)

## Response `200`

Azure operation completed successfully.

- ListCredentialResponse: The list kubeconfig result response.
  - `id` string: Operation Id
  - `name` string: Operation Name
  - `resourceId` string, arm-id: ARM Resource Id of the provisioned cluster instance
  - `status` 'Succeeded' | 'Failed' | 'Canceled' | 'Pending' | 'Creating' | 'Deleting' | 'Updating' | 'Upgrading' | 'Accepted': Provisioning state of the resource.
  - `error` ListCredentialResponseError: The error listing the kubeconfig credential response.
    - `code` string: The error code.
    - `message` string: The error message.
  - `properties` ListCredentialResponseProperties: Properties of the kubeconfig credential response.
    - `kubeconfigs` CredentialResult[]: Base64-encoded Kubernetes configuration file.
      - `name` string: The name of the credential.
      - `value` string, byte: Base64-encoded Kubernetes configuration file.

## Other responses

- `202`: Resource operation accepted.
- `default`: An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/hybridcontainerservice.md) - [All operations](https://skmtc.dev/azure/apis/hybridcontainerservice/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/hybridcontainerservice/revisions/ee8bec1c1bf4?raw)
