Condividi tramite


ContainerRegistryResource.GenerateCredentials 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsResult> GenerateCredentials (Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateCredentials : Azure.WaitUntil * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsResult>
override this.GenerateCredentials : Azure.WaitUntil * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsResult>
Public Overridable Function GenerateCredentials (waitUntil As WaitUntil, content As ContainerRegistryGenerateCredentialsContent, Optional cancellationToken As CancellationToken = Nothing) As 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