ContainerRegistryResource.ImportImage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 Azure.ResourceManager.ArmOperation ImportImage (Azure.WaitUntil waitUntil, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportImageContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member ImportImage : Azure.WaitUntil * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportImageContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.ImportImage : Azure.WaitUntil * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportImageContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function ImportImage (waitUntil As WaitUntil, content As ContainerRegistryImportImageContent, Optional cancellationToken As CancellationToken = Nothing) As 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.
The parameters specifying the image to copy and the source container registry.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content
is null.