azure.containerregistry package¶
-
class
azure.containerregistry.
ContainerRegistryClient
(endpoint: str, credential: TokenCredential, **kwargs: Dict[str, Any])[source]¶ Create a ContainerRegistryClient from an ACR endpoint and a credential
- Parameters
endpoint (str) – An ACR endpoint
credential (
TokenCredential
) – The credential with which to authenticate
- Returns
None
- Raises
None
-
close
() → None¶ Close sockets opened by the client. Calling this method is unnecessary when using the client as a context manager.
-
delete_repository
(repository: str, **kwargs: Dict[str, Any]) → DeletedRepositoryResult[source]¶ Delete a repository
- Parameters
repository (str) – The repository to delete
- Returns
Object containing information about the deleted repository
- Return type
- Raises
-
get_repository_client
(repository: str, **kwargs: Dict[str, Any]) → ContainerRepositoryClient[source]¶ Get a repository client
- Parameters
repository (str) – The repository to create a client for
- Returns
- Raises
None
-
class
azure.containerregistry.
ContainerRepositoryClient
(endpoint: str, repository: str, credential: TokenCredential, **kwargs: Dict[str, Any])[source]¶ Create a ContainerRepositoryClient from an endpoint, repository name, and credential
- Parameters
- Returns
None
- Raises
None
-
close
() → None¶ Close sockets opened by the client. Calling this method is unnecessary when using the client as a context manager.
-
delete
(**kwargs: Dict[str, Any]) → None[source]¶ Delete a repository
- Returns
Object containing information about the deleted repository
- Return type
- Raises
-
delete_registry_artifact
(digest: str, **kwargs: Dict[str, Any]) → None[source]¶ Delete a registry artifact
- Parameters
digest (str) – The digest of the artifact to be deleted
- Returns
None
- Raises
-
delete_tag
(tag: str, **kwargs: Dict[str, Any]) → None[source]¶ Delete a tag from a repository
- Parameters
tag (str) – The tag to be deleted
- Returns
None
- Raises
-
get_properties
(**kwargs: Dict[str, Any]) → RepositoryProperties[source]¶ Get the properties of a repository
- Returns
- Raises
-
get_registry_artifact_properties
(tag_or_digest: str, **kwargs: Dict[str, Any]) → RegistryArtifactProperties[source]¶ Get the properties of a registry artifact
- Parameters
tag_or_digest (str) – The tag/digest of a registry artifact
- Returns
- Raises
-
get_tag_properties
(tag: str, **kwargs: Dict[str, Any]) → TagProperties[source]¶ Get the properties for a tag
- Parameters
tag (str) – The tag to get properties for
- Returns
- Raises
-
list_registry_artifacts
(**kwargs: Dict[str, Any]) → ItemPaged[RegistryArtifactProperties][source]¶ List the artifacts for a repository
- Keyword Arguments
last (str) – Query parameter for the last item in the previous call. Ensuing call will return values after last lexically
order_by (
RegistryArtifactOrderBy
) – Query parameter for ordering by time ascending or descendingresults_per_page (int) – Number of repositories to return per page
- Returns
ItemPaged[
RegistryArtifactProperties
]- Return type
- Raises
List the tags for a repository
- Keyword Arguments
last (str) – Query parameter for the last item in the previous call. Ensuing call will return values after last lexically
order_by (
TagOrderBy
) – Query parameter for ordering by time ascending or descendingresults_per_page (int) – Number of repositories to return per page
- Returns
ItemPaged[
TagProperties
]- Return type
- Raises
-
set_manifest_properties
(digest: str, permissions: ContentPermissions, **kwargs: Dict[str, Any]) → RegistryArtifactProperties[source]¶ Set the properties for a manifest
- Parameters
digest (str) – Digest of a manifest
permissions (ContentPermissions) – The property’s values to be set
- Returns
- Raises
-
class
azure.containerregistry.
ContentPermissions
(**kwargs)[source]¶ Permissions of an artifact or tag
-
class
azure.containerregistry.
DeletedRepositoryResult
(**kwargs)[source]¶ Represents the digests and tags deleted when a repository is deleted
-
class
azure.containerregistry.
RegistryArtifactOrderBy
[source]¶ Enum for ordering registry artifacts
-
LAST_UPDATE_TIME_ASCENDING
= 'timeasc'¶
-
LAST_UPDATE_TIME_DESCENDING
= 'timedesc'¶
-
-
class
azure.containerregistry.
RegistryArtifactProperties
(**kwargs)[source]¶ Represents properties of a registry artifact
- Variables
cpu_architecture (str) – CPU Architecture of an artifact
created_on (
datetime
) – Time and date an artifact was createddigest (str) – Digest for the artifact
last_updated_on (
datetime
) – Time and date an artifact was last updatedoperating_system (str) – Operating system for the artifact
references (List[str]) – References for the artifact
size (str) – Size of the artifact
tags (List[str]) – Tags associated with a registry artifact
content_permissions (
ContentPermissions
) – Permissions for an artifact
-
class
azure.containerregistry.
RepositoryProperties
(**kwargs)[source]¶ Model for storing properties of a single repository
- Variables
content_permissions (
ContentPermissions
) – Read/Write/List/Delete permissions for the repositorycreated_on (
datetime.datetime
) – Time the repository was createdlast_updated_on (
datetime.datetime
) – Time the repository was last updatedmanifest_count (int) – Number of manifest in the repository
name (str) – Name of the repository
registry (str) – Registry the repository belongs to
tag_count (int) – Number of tags associated with the repository
-
class
azure.containerregistry.
TagOrderBy
[source]¶ Enum for ordering tags
-
LAST_UPDATE_TIME_ASCENDING
= 'timeasc'¶
-
LAST_UPDATE_TIME_DESCENDING
= 'timedesc'¶
-
-
class
azure.containerregistry.
TagProperties
(**kwargs)[source]¶ Model for storing properties of a single tag
- Variables
content_permissions (
ContentPermissions
) – Read/Write/List/Delete permissions for the tagcreated_on (
datetime.datetime
) – Time the tag was createddigest (str) – Digest for the tag
last_updated_on (
datetime.datetime
) – Time the tag was last updatedname (str) – Name of the image the tag corresponds to
registry (str) – Registry the tag belongs to