Skip to main content

repository_manifests

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

Overview

Namerepository_manifests
TypeResource
Iddigitalocean.container_registry.repository_manifests

Fields

The following fields are returned by SELECT queries:

The response body will be a JSON object with a key of manifests. This will be set to an array containing objects each representing a manifest.

NameDatatypeDescription
registry_namestringThe name of the container registry. (example: example)
blobsarrayAll blobs associated with this manifest
compressed_size_bytesintegerThe compressed size of the manifest in bytes.
digeststringThe manifest digest (example: sha256:cb8a924afdf0229ef7515d9e5b3024e23b3eb03ddbba287f4a19c6ac90b8d221)
repositorystringThe name of the repository. (example: repo-1)
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_atstring (date-time)The time the manifest was last updated. (example: 2020-04-09T23:54:25Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
registries_list_repository_manifestsselectregistry_name, repository_nameper_page, pageTo list all manifests in your container registry repository, send a GET
request to /v2/registries/$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.

It is similar to /v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests and exists for backward compatibility.
registries_delete_repository_manifestdeleteregistry_name, repository_name, manifest_digestTo delete a container repository manifest by digest in one of your registries, send a DELETE request to
/v2/registries/$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.

It is similar to DELETE /v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST and exists for backward compatibility.
registry_list_repository_manifests_legacyexecregistry_name, repository_nameper_page, pageTo 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_legacyexecregistry_name, repository_name, manifest_digestTo 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.

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
manifest_digeststringThe manifest digest of a container registry repository tag. (example: sha256:cb8a924afdf0229ef7515d9e5b3024e23b3eb03ddbba287f4a19c6ac90b8d221)
registry_namestringThe name of a container registry. (example: example)
repository_namestringThe name of a container registry repository. If the name contains / characters, they must be URL-encoded, e.g. %2F. (example: repo-1)
pageintegerWhich 'page' of paginated results to return. (example: 1)
per_pageintegerNumber of items returned per page (example: 2)

SELECT examples

To list all manifests in your container registry repository, send a GET
request to /v2/registries/$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.

It is similar to /v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests and exists for backward compatibility.

SELECT
registry_name,
blobs,
compressed_size_bytes,
digest,
repository,
size_bytes,
tags,
updated_at
FROM digitalocean.container_registry.repository_manifests
WHERE registry_name = '{{ registry_name }}' -- required
AND repository_name = '{{ repository_name }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}';

DELETE examples

To delete a container repository manifest by digest in one of your registries, send a DELETE request to
/v2/registries/$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.

It is similar to DELETE /v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST and exists for backward compatibility.

DELETE FROM digitalocean.container_registry.repository_manifests
WHERE registry_name = '{{ registry_name }}' --required
AND repository_name = '{{ repository_name }}' --required
AND manifest_digest = '{{ manifest_digest }}' --required;

Lifecycle Methods

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.

EXEC digitalocean.container_registry.repository_manifests.registry_list_repository_manifests_legacy 
@registry_name='{{ registry_name }}' --required,
@repository_name='{{ repository_name }}' --required,
@per_page='{{ per_page }}',
@page='{{ page }}';