provisioned Cluster Instances - List User Kubeconfig
Lists the user credentials of the provisioned cluster (can only be used within private network)
POST https://management.azure.com/{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig?api-version=2024-01-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
connected
|
path | True |
string |
The fully qualified Azure Resource Manager identifier of the connected cluster resource. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK |
|
| 202 Accepted |
Accepted Headers Location: string |
|
| Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
ListClusterUserCredentials
Sample request
POST https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/test-hybridakscluster/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig?api-version=2024-01-01
Sample response
{
"id": "/providers/Microsoft.HybridContainerService/locations/EASTUS/operationStatuses/766ea16c-53c6-421e-9b7d-a8bea47285ed*36530D233A0F410A40772AE878D8E7A0B2223081048946AD3D40DE0268480FBE",
"name": "766ea16c-53c6-421e-9b7d-a8bea47285ed*36530D233A0F410A40772AE878D8E7A0B2223081048946AD3D40DE0268480FBE",
"resourceId": "/subscriptions/921d26b3-c14d-4efc-b56e-93a2439e028c/resourceGroups/rg/providers/Microsoft.HybridContainerService/provisionedClusters/cluster-pc-1-24",
"status": "Succeeded",
"properties": {
"kubeconfigs": [
{
"name": "credentialName1",
"value": "Y3JlZGVudGlhbFZhbHVlMQ=="
}
]
}
}
Azure-AsyncOperation: https://management.azure.com/providers/Microsoft.HybridContainerService/locations/westus/operations/00000000-0000-0000-0000-000000000000?api-version=2024-01-01
location: https://foo.com/operationStatuses
Definitions
| Name | Description |
|---|---|
|
Credential |
The credential result response. |
| Error | |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
List |
The list kubeconfig result response. |
| Properties | |
|
Resource |
Provisioning state of the resource |
CredentialResult
The credential result response.
| Name | Type | Description |
|---|---|---|
| name |
string |
The name of the credential. |
| value |
string (byte) |
Base64-encoded Kubernetes configuration file. |
Error
| Name | Type | Description |
|---|---|---|
| code |
string |
|
| message |
string |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
ListCredentialResponse
The list kubeconfig result response.
| Name | Type | Description |
|---|---|---|
| error | ||
| id |
string |
Operation Id |
| name |
string |
Operation Name |
| properties | ||
| resourceId |
string (arm-id) |
ARM Resource Id of the provisioned cluster instance |
| status |
Provisioning state of the resource |
Properties
| Name | Type | Description |
|---|---|---|
| kubeconfigs |
Base64-encoded Kubernetes configuration file. |
ResourceProvisioningState
Provisioning state of the resource
| Value | Description |
|---|---|
| Succeeded | |
| Failed | |
| Canceled | |
| Pending | |
| Creating | |
| Deleting | |
| Updating | |
| Upgrading | |
| Accepted |