RegistriesOperations Class

RegistriesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
RegistriesOperations

Constructor

RegistriesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

begin_create

Creates a container registry with the specified parameters.

begin_delete

Deletes a container registry.

begin_import_image

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

begin_update

Updates a container registry with the specified parameters.

begin_update_policies

Updates the policies for the specified container registry.

check_name_availability

Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length.

get

Gets the properties of the specified container registry.

list

Lists all the container registries under the specified subscription.

list_by_resource_group

Lists all the container registries under the specified resource group.

list_credentials

Lists the login credentials for the specified container registry.

list_policies

Lists the policies for the specified container registry.

list_usages

Gets the quota usages for the specified container registry.

regenerate_credential

Regenerates one of the login credentials for the specified container registry.

begin_create

Creates a container registry with the specified parameters.

begin_create(resource_group_name: str, registry_name: str, registry: azure.mgmt.containerregistry.v2017_10_01.models._models_py3.Registry, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.containerregistry.v2017_10_01.models._models_py3.Registry]

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

registry
Registry
Required

The parameters for creating a container registry.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Registry or the result of cls(response)

Return type

Exceptions

begin_delete

Deletes a container registry.

begin_delete(resource_group_name: str, registry_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

begin_import_image

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

begin_import_image(resource_group_name: str, registry_name: str, parameters: azure.mgmt.containerregistry.v2017_10_01.models._models_py3.ImportImageParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

parameters
ImportImageParameters
Required

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

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

begin_update

Updates a container registry with the specified parameters.

begin_update(resource_group_name: str, registry_name: str, registry_update_parameters: azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryUpdateParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.containerregistry.v2017_10_01.models._models_py3.Registry]

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

registry_update_parameters
RegistryUpdateParameters
Required

The parameters for updating a container registry.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Registry or the result of cls(response)

Return type

Exceptions

begin_update_policies

Updates the policies for the specified container registry.

begin_update_policies(resource_group_name: str, registry_name: str, registry_policies_update_parameters: azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryPolicies, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryPolicies]

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

registry_policies_update_parameters
RegistryPolicies
Required

The parameters for updating policies of a container registry.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either RegistryPolicies or the result of cls(response)

Return type

Exceptions

check_name_availability

Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length.

check_name_availability(registry_name_check_request: azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryNameCheckRequest, **kwargs: Any) -> azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryNameStatus

Parameters

registry_name_check_request
RegistryNameCheckRequest
Required

The object containing information for the availability request.

cls
callable

A custom type or function that will be passed the direct response

Returns

RegistryNameStatus, or the result of cls(response)

Return type

Exceptions

get

Gets the properties of the specified container registry.

get(resource_group_name: str, registry_name: str, **kwargs: Any) -> azure.mgmt.containerregistry.v2017_10_01.models._models_py3.Registry

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

cls
callable

A custom type or function that will be passed the direct response

Returns

Registry, or the result of cls(response)

Return type

Exceptions

list

Lists all the container registries under the specified subscription.

list(**kwargs: Any) -> Iterable[azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryListResult]

Parameters

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either RegistryListResult or the result of cls(response)

Return type

Exceptions

list_by_resource_group

Lists all the container registries under the specified resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryListResult]

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either RegistryListResult or the result of cls(response)

Return type

Exceptions

list_credentials

Lists the login credentials for the specified container registry.

list_credentials(resource_group_name: str, registry_name: str, **kwargs: Any) -> azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryListCredentialsResult

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

cls
callable

A custom type or function that will be passed the direct response

Returns

RegistryListCredentialsResult, or the result of cls(response)

Return type

Exceptions

list_policies

Lists the policies for the specified container registry.

list_policies(resource_group_name: str, registry_name: str, **kwargs: Any) -> azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryPolicies

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

cls
callable

A custom type or function that will be passed the direct response

Returns

RegistryPolicies, or the result of cls(response)

Return type

Exceptions

list_usages

Gets the quota usages for the specified container registry.

list_usages(resource_group_name: str, registry_name: str, **kwargs: Any) -> azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryUsageListResult

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

cls
callable

A custom type or function that will be passed the direct response

Returns

RegistryUsageListResult, or the result of cls(response)

Return type

Exceptions

regenerate_credential

Regenerates one of the login credentials for the specified container registry.

regenerate_credential(resource_group_name: str, registry_name: str, regenerate_credential_parameters: azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegenerateCredentialParameters, **kwargs: Any) -> azure.mgmt.containerregistry.v2017_10_01.models._models_py3.RegistryListCredentialsResult

Parameters

resource_group_name
str
Required

The name of the resource group to which the container registry belongs.

registry_name
str
Required

The name of the container registry.

regenerate_credential_parameters
RegenerateCredentialParameters
Required

Specifies name of the password which should be regenerated – password or password2.

cls
callable

A custom type or function that will be passed the direct response

Returns

RegistryListCredentialsResult, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.containerregistry.v2017_10_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\containerregistry\\v2017_10_01\\models\\__init__.py'>