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.objectRegistriesOperations
Constructor
RegistriesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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. |
| 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. |
| get_private_link_resource |
Gets a private link resource by a specified group name for a 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_private_link_resources |
Lists the private link resources for a 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.v2021_09_01.models._models_py3.Registry, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.containerregistry.v2021_09_01.models._models_py3.Registry]
Parameters
- resource_group_name
- str
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
- 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
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
- 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.v2021_09_01.models._models_py3.ImportImageParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]
Parameters
- resource_group_name
- str
The name of the resource group to which the container registry belongs.
- parameters
- ImportImageParameters
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.v2021_09_01.models._models_py3.RegistryUpdateParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.containerregistry.v2021_09_01.models._models_py3.Registry]
Parameters
- resource_group_name
- str
The name of the resource group to which the container registry belongs.
- registry_update_parameters
- RegistryUpdateParameters
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
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.v2021_09_01.models._models_py3.RegistryNameCheckRequest, **kwargs: Any) -> azure.mgmt.containerregistry.v2021_09_01.models._models_py3.RegistryNameStatus
Parameters
- registry_name_check_request
- RegistryNameCheckRequest
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.v2021_09_01.models._models_py3.Registry
Parameters
- resource_group_name
- str
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
Registry, or the result of cls(response)
Return type
Exceptions
get_private_link_resource
Gets a private link resource by a specified group name for a container registry.
get_private_link_resource(resource_group_name: str, registry_name: str, group_name: str, **kwargs: Any) -> azure.mgmt.containerregistry.v2021_09_01.models._models_py3.PrivateLinkResource
Parameters
- resource_group_name
- str
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
PrivateLinkResource, 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.v2021_09_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.v2021_09_01.models._models_py3.RegistryListResult]
Parameters
- resource_group_name
- str
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.v2021_09_01.models._models_py3.RegistryListCredentialsResult
Parameters
- resource_group_name
- str
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
RegistryListCredentialsResult, or the result of cls(response)
Return type
Exceptions
list_private_link_resources
Lists the private link resources for a container registry.
list_private_link_resources(resource_group_name: str, registry_name: str, **kwargs: Any) -> Iterable[azure.mgmt.containerregistry.v2021_09_01.models._models_py3.PrivateLinkResourceListResult]
Parameters
- resource_group_name
- str
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 PrivateLinkResourceListResult 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.v2021_09_01.models._models_py3.RegistryUsageListResult
Parameters
- resource_group_name
- str
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
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.v2021_09_01.models._models_py3.RegenerateCredentialParameters, **kwargs: Any) -> azure.mgmt.containerregistry.v2021_09_01.models._models_py3.RegistryListCredentialsResult
Parameters
- resource_group_name
- str
The name of the resource group to which the container registry belongs.
- regenerate_credential_parameters
- RegenerateCredentialParameters
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.v2021_09_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\containerregistry\\v2021_09_01\\models\\__init__.py'>
Feedback
Submit and view feedback for