Share via


ContainerRegistryResource.GenerateCredentialsAsync Method

Definition

Generate keys for a token of a specified container registry.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials
  • Operation Id: Registries_GenerateCredentials
  • Default Api Version: 2022-12-01
  • Resource: ContainerRegistryResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsResult>> GenerateCredentialsAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateCredentialsAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsResult>>
override this.GenerateCredentialsAsync : Azure.WaitUntil * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsResult>>
Public Overridable Function GenerateCredentialsAsync (waitUntil As WaitUntil, content As ContainerRegistryGenerateCredentialsContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContainerRegistryGenerateCredentialsResult))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
ContainerRegistryGenerateCredentialsContent

The parameters for generating credentials.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to