다음을 통해 공유


ManagedClustersOperationsExtensions.GetAccessProfileAsync Method

Definition

Caution

This operation is deprecated. Please do not use it any longer.

Gets an access profile of a managed cluster.

[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerService.Fluent.Models.ManagedClusterAccessProfileInner> GetAccessProfileAsync (this Microsoft.Azure.Management.ContainerService.Fluent.IManagedClustersOperations operations, string resourceGroupName, string resourceName, string roleName, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("This operation is deprecated. Please do not use it any longer.")>]
static member GetAccessProfileAsync : Microsoft.Azure.Management.ContainerService.Fluent.IManagedClustersOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerService.Fluent.Models.ManagedClusterAccessProfileInner>
<Extension()>
Public Function GetAccessProfileAsync (operations As IManagedClustersOperations, resourceGroupName As String, resourceName As String, roleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ManagedClusterAccessProfileInner)

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.

roleName
String

The name of the role for managed cluster accessProfile resource.

cancellationToken
CancellationToken

The cancellation token.

Returns

Attributes

Remarks

Gets the accessProfile for the specified role name of the managed cluster with a specified resource group and name. **WARNING**: This API will be deprecated. Instead use

ListClusterUserCredentials or

ListClusterAdminCredentials .

Applies to