Share via


ContainerRegistryArchiveVersionCollection.CreateOrUpdateAsync Method

Definition

Creates a archive for a container registry with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/packages/{packageType}/archives/{archiveName}/versions/{archiveVersionName}
  • Operation Id: ArchiveVersions_Create
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryArchiveVersionResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.ContainerRegistryArchiveVersionResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string archiveVersionName, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.ContainerRegistryArchiveVersionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.ContainerRegistryArchiveVersionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, archiveVersionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContainerRegistryArchiveVersionResource))

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.

archiveVersionName
String

The name of the archive version resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

archiveVersionName is an empty string, and was expected to be non-empty.

archiveVersionName is null.

Applies to