Compartilhar via


ContainerRegistryResource.RegenerateCredentialAsync Método

Definição

Regenerar uma das credenciais de logon para o registro de contêiner especificado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential
  • IdRegistries_RegenerateCredential de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryListCredentialsResult>> RegenerateCredentialAsync (Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryCredentialRegenerateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateCredentialAsync : Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryCredentialRegenerateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryListCredentialsResult>>
override this.RegenerateCredentialAsync : Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryCredentialRegenerateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryListCredentialsResult>>
Public Overridable Function RegenerateCredentialAsync (content As ContainerRegistryCredentialRegenerateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ContainerRegistryListCredentialsResult))

Parâmetros

content
ContainerRegistryCredentialRegenerateContent

Especifica o nome da senha que deve ser regenerada – senha ou senha2.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a