Skip to main content

registry_repositories_digests

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

Overview

Nameregistry_repositories_digests
TypeResource
Iddigitalocean.container_registry.registry_repositories_digests

Fields

NameDatatypeDescription
blobsarrayAll blobs associated with this manifest
compressed_size_bytesintegerThe compressed size of the manifest in bytes.
digeststringThe manifest digest
registry_namestringThe name of the container registry.
repositorystringThe name of the repository.
size_bytesintegerThe uncompressed size of the manifest in bytes (this size is calculated asynchronously so it may not be immediately available).
tagsarrayAll tags associated with this manifest
updated_atstringThe time the manifest was last updated.

Methods

NameAccessible byRequired ParamsDescription
registry_list_repository_manifestsSELECTregistry_name, repository_nameTo list all manifests in your container registry repository, send a GET request to /v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests. Note that if your repository name contains / characters, it must be URL-encoded in the request URL. For example, to list manifests for registry.digitalocean.com/example/my/repo, the path would be /v2/registry/example/repositories/my%2Frepo/digests.
registry_delete_repository_manifestDELETEmanifest_digest, registry_name, repository_nameTo delete a container repository manifest by digest, send a DELETE request to /v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST. Note that if your repository name contains / characters, it must be URL-encoded in the request URL. For example, to delete registry.digitalocean.com/example/my/repo@sha256:abcd, the path would be /v2/registry/example/repositories/my%2Frepo/digests/sha256:abcd. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

SELECT examples

To list all manifests in your container registry repository, send a GET request to /v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests. Note that if your repository name contains / characters, it must be URL-encoded in the request URL. For example, to list manifests for registry.digitalocean.com/example/my/repo, the path would be /v2/registry/example/repositories/my%2Frepo/digests.

SELECT
blobs,
compressed_size_bytes,
digest,
registry_name,
repository,
size_bytes,
tags,
updated_at
FROM digitalocean.container_registry.registry_repositories_digests
WHERE registry_name = '{{ registry_name }}'
AND repository_name = '{{ repository_name }}';

DELETE example

Deletes the specified registry_repositories_digests resource.

/*+ delete */
DELETE FROM digitalocean.container_registry.registry_repositories_digests
WHERE manifest_digest = '{{ manifest_digest }}'
AND registry_name = '{{ registry_name }}'
AND repository_name = '{{ repository_name }}';