Compartilhar via


ImportSource Class

ImportSource.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.containerregistry._serialization.Model
ImportSource

Constructor

ImportSource(*, source_image: str, resource_id: str | None = None, registry_uri: str | None = None, credentials: _models.ImportSourceCredentials | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
resource_id
str

The resource identifier of the source Azure Container Registry.

registry_uri
str

The address of the source registry (e.g. 'mcr.microsoft.com').

credentials

Credentials used when importing from a registry uri.

source_image
str

Repository name of the source image. Specify an image by repository ('hello-world'). This will use the 'latest' tag. Specify an image by tag ('hello-world:latest'). Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123'). Required.

Variables

Name Description
resource_id
str

The resource identifier of the source Azure Container Registry.

registry_uri
str

The address of the source registry (e.g. 'mcr.microsoft.com').

credentials

Credentials used when importing from a registry uri.

source_image
str

Repository name of the source image. Specify an image by repository ('hello-world'). This will use the 'latest' tag. Specify an image by tag ('hello-world:latest'). Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123'). Required.