provisioned Cluster Instances - List Admin Kubeconfig

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

POST https://management.azure.com/{connectedClusterResourceUri}/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listAdminKubeconfig?api-version=2024-01-01

URI Parameters

Name In Required Type Description
connectedClusterResourceUri
path True

string

The fully qualified Azure Resource Manager identifier of the connected cluster resource.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

ListCredentialResponse

OK

202 Accepted

Accepted

Headers

Location: string

Other Status Codes

ErrorResponse

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

ListClusterAdminCredentials

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/listAdminKubeconfig?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
CredentialResult

The credential result response.

Error
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

ListCredentialResponse

The list kubeconfig result response.

Properties
ResourceProvisioningState

Provisioning state of the resource

CredentialResult

The credential result response.

Name Type Description
name

string

The name of the credential.

value

string

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

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

ListCredentialResponse

The list kubeconfig result response.

Name Type Description
error

Error

id

string

Operation Id

name

string

Operation Name

properties

Properties

resourceId

string

ARM Resource Id of the provisioned cluster instance

status

ResourceProvisioningState

Provisioning state of the resource

Properties

Name Type Description
kubeconfigs

CredentialResult[]

Base64-encoded Kubernetes configuration file.

ResourceProvisioningState

Provisioning state of the resource

Value Description
Accepted
Canceled
Creating
Deleting
Failed
Pending
Succeeded
Updating
Upgrading