共用方式為


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

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