IRegistries.GetCredentialsAsync(String, String, CancellationToken) Method

Definition

Gets the login credentials for the specified container registry.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistryCredentials> GetCredentialsAsync (string resourceGroupName, string registryName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCredentialsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistryCredentials>
Public Function GetCredentialsAsync (resourceGroupName As String, registryName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IRegistryCredentials)

Parameters

resourceGroupName
System.String

The resource group name.

registryName
System.String

The registry name.

cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<IRegistryCredentials>

Applies to