registry_repositories_digests
Creates, updates, deletes, gets or lists a registry_repositories_digests
resource.
Overview
Name | registry_repositories_digests |
Type | Resource |
Id | digitalocean.container_registry.registry_repositories_digests |
Fields
Name | Datatype | Description |
---|---|---|
blobs | array | All blobs associated with this manifest |
compressed_size_bytes | integer | The compressed size of the manifest in bytes. |
digest | string | The manifest digest |
registry_name | string | The name of the container registry. |
repository | string | The name of the repository. |
size_bytes | integer | The uncompressed size of the manifest in bytes (this size is calculated asynchronously so it may not be immediately available). |
tags | array | All tags associated with this manifest |
updated_at | string | The time the manifest was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
registry_list_repository_manifests | SELECT | registry_name, repository_name | 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 . |
registry_delete_repository_manifest | DELETE | manifest_digest, registry_name, repository_name | To 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 }}';