Udostępnij za pośrednictwem


ContainerRegistryResource.ImportImageAsync Method

Definition

Copies an image to this container registry from the specified container registry.

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

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
ContainerRegistryImportImageContent

The parameters specifying the image to copy and the source container registry.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to