azure.mgmt.containerregistry.v2017_03_01.operations module

class azure.mgmt.containerregistry.v2017_03_01.operations.RegistriesOperations(client, config, serializer, deserializer)[source]

Bases: object

RegistriesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The client API version. Constant value: “2017-03-01”.

check_name_availability(name, custom_headers=None, raw=False, **operation_config)[source]

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

Parameters:
  • name (str) – The name of the container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

RegistryNameStatus

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

create(resource_group_name, registry_name, registry_create_parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates a container registry with the specified parameters.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • registry_create_parameters (RegistryCreateParameters) – The parameters for creating a container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns Registry

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a container registry.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the properties of the specified container registry.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Registry

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all the container registries under the specified subscription.

Parameters:
Return type:

RegistryPaged

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Lists all the container registries under the specified resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

RegistryPaged

Raises:

CloudError

list_credentials(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]

Lists the login credentials for the specified container registry.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

RegistryListCredentialsResult

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

regenerate_credential(resource_group_name, registry_name, name, custom_headers=None, raw=False, **operation_config)[source]

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

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • name (str or PasswordName) – Specifies name of the password which should be regenerated – password or password2. Possible values include: ‘password’, ‘password2’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

RegistryListCredentialsResult

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

update(resource_group_name, registry_name, registry_update_parameters, custom_headers=None, raw=False, **operation_config)[source]

Updates a container registry with the specified parameters.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • registry_update_parameters (RegistryUpdateParameters) – The parameters for updating a container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Registry

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

class azure.mgmt.containerregistry.v2017_03_01.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The client API version. Constant value: “2017-03-01”.

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the available Azure Container Registry REST API operations.

Parameters:
Return type:

OperationDefinitionPaged

Raises:

CloudError