Udostępnij za pośrednictwem


ManagedClustersOperationsExtensions.ListClusterAdminCredentialsAsync Method

Definition

Gets cluster admin credential of a managed cluster.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerService.Fluent.Models.CredentialResultsInner> ListClusterAdminCredentialsAsync (this Microsoft.Azure.Management.ContainerService.Fluent.IManagedClustersOperations operations, string resourceGroupName, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member ListClusterAdminCredentialsAsync : Microsoft.Azure.Management.ContainerService.Fluent.IManagedClustersOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerService.Fluent.Models.CredentialResultsInner>
<Extension()>
Public Function ListClusterAdminCredentialsAsync (operations As IManagedClustersOperations, resourceGroupName As String, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CredentialResultsInner)

Parameters

operations
IManagedClustersOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

resourceName
String

The name of the managed cluster resource.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Gets cluster admin credential of the managed cluster with a specified resource group and name.

Applies to