共用方式為


ConnectedClusterResource.GetClusterUserCredentialAsync Method

Definition

Gets cluster user credentials of the connected cluster with a specified resource group and name.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}/listClusterUserCredential
  • Operation Id: ConnectedCluster_ListClusterUserCredential
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Kubernetes.Models.CredentialResults>> GetClusterUserCredentialAsync (Azure.ResourceManager.Kubernetes.Models.ListClusterUserCredentialProperties properties, System.Threading.CancellationToken cancellationToken = default);
abstract member GetClusterUserCredentialAsync : Azure.ResourceManager.Kubernetes.Models.ListClusterUserCredentialProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Kubernetes.Models.CredentialResults>>
override this.GetClusterUserCredentialAsync : Azure.ResourceManager.Kubernetes.Models.ListClusterUserCredentialProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Kubernetes.Models.CredentialResults>>
Public Overridable Function GetClusterUserCredentialAsync (properties As ListClusterUserCredentialProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CredentialResults))

Parameters

properties
ListClusterUserCredentialProperties

ListClusterUserCredential properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

properties is null.

Applies to