Aracılığıyla paylaş


RegistriesOperationsExtensions.RegenerateCredentialAsync Method

Definition

Regenerates one of the login credentials for the specified container registry.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryListCredentialsResultInner> RegenerateCredentialAsync (this Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistriesOperations operations, string resourceGroupName, string registryName, Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.PasswordName name, System.Threading.CancellationToken cancellationToken = default);
static member RegenerateCredentialAsync : Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistriesOperations * string * string * Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.PasswordName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryListCredentialsResultInner>
<Extension()>
Public Function RegenerateCredentialAsync (operations As IRegistriesOperations, resourceGroupName As String, registryName As String, name As PasswordName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RegistryListCredentialsResultInner)

Parameters

operations
IRegistriesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group to which the container registry belongs.

registryName
String

The name of the container registry.

name
PasswordName

Specifies name of the password which should be regenerated -- password or password2. Possible values include: 'password', 'password2'

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to