Skip to main content

container_registry

Creates, updates, deletes, gets or lists a container_registry resource.

Overview

Namecontainer_registry
TypeResource
Idazure.container_registry_dataplane.container_registry

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring(V1) Image name.
annotationsobject(OCI, OCIIndex) Additional metadata.
architecturestring(V1) CPU architecture.
configobject(V2, OCI) Image config descriptor.
fsLayersarray(V1) List of layer information.
historyarray(V1) Image history.
layersarray(V2, OCI) List of V2 image layer information.
manifestsarray(ManifestList, OCIIndex) List of V2 image layer information.
mediaTypestringMedia type for this Manifest.
schemaVersionintegerSchema version.
signaturesarray(V1) Image signature.
tagstring(V1) Image tag.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_manifestselectname, reference, endpointGet the manifest identified by name and reference where reference can be a tag or digest.
get_manifest_propertiesselectname, digest, endpointGet manifest attributes.
get_propertiesselectname, endpointGet repository attributes.
get_repositoriesselectendpointlast, nList repositories.
create_manifestexecname, reference, endpointPut the manifest identified by name and reference where reference can be a tag or digest.
delete_manifestexecname, reference, endpointDelete the manifest identified by name and reference. Note that a manifest can only be deleted by digest.
delete_repositoryexecname, endpointDelete the repository identified by name.
update_propertiesexecname, endpointUpdate the attribute identified by name where reference is the name of the repository.
get_tagsexecname, endpointlast, n, orderby, digestList tags of a repository.
get_tag_propertiesexecname, reference, endpointGet tag attributes by tag.
update_tag_attributesexecname, reference, endpointUpdate tag attributes.
delete_tagexecname, reference, endpointDelete tag.
get_manifestsexecname, endpointlast, n, orderbyList manifests of a repository.
update_manifest_propertiesexecname, digest, endpointUpdate properties of a manifest.
check_docker_v2_supportexecendpointTells whether this Docker Registry instance supports Docker Registry HTTP API v2.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
digeststringDigest of a BLOB. Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
namestringName of the image (including the namespace). Required.
referencestringTag name. Required.
digeststringfilter by digest. Default value is None.
laststringQuery parameter for the last item in previous query. Result set will include values lexically after last. Default value is None.
nintegerquery parameter for max number of items. Default value is None.
orderbystringorderby query parameter. Known values are: "none", "timedesc", and "timeasc". Default value is None.

SELECT examples

Get the manifest identified by name and reference where reference can be a tag or digest.

SELECT
name,
annotations,
architecture,
config,
fsLayers,
history,
layers,
manifests,
mediaType,
schemaVersion,
signatures,
tag
FROM azure.container_registry_dataplane.container_registry
WHERE name = '{{ name }}' -- required
AND reference = '{{ reference }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods

Put the manifest identified by name and reference where reference can be a tag or digest.

EXEC azure.container_registry_dataplane.container_registry.create_manifest 
@name='{{ name }}' --required,
@reference='{{ reference }}' --required,
@endpoint='{{ endpoint }}' --required
@@json=
'{
"schemaVersion": {{ schemaVersion }}
}'
;