Skip to main content

registries

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

Overview

Nameregistries
TypeResource
Iddigitalocean.container_registry.registries

Fields

NameDatatypeDescription
column_anon``

Methods

NameAccessible byRequired ParamsDescription
registry_getSELECTTo get information about your container registry, send a GET request to /v2/registry.
registry_createINSERTdata__name, data__subscription_tier_slugTo create your container registry, send a POST request to /v2/registry. The name becomes part of the URL for images stored in the registry. For example, if your registry is called example, an image in it will have the URL registry.digitalocean.com/example/image:tag.
registry_deleteDELETETo delete your container registry, destroying all container image data stored in it, send a DELETE request to /v2/registry.
registry_validate_nameEXECdata__nameTo validate that a container registry name is available for use, send a POST request to /v2/registry/validate-name. If the name is both formatted correctly and available, the response code will be 204 and contain no body. If the name is already in use, the response will be a 409 Conflict.

SELECT examples

To get information about your container registry, send a GET request to /v2/registry.

SELECT
column_anon
FROM digitalocean.container_registry.registries
;

INSERT example

Use the following StackQL query and manifest file to create a new registries resource.

/*+ create */
INSERT INTO digitalocean.container_registry.registries (
data__name,
data__subscription_tier_slug,
data__region
)
SELECT
'{{ name }}',
'{{ subscription_tier_slug }}',
'{{ region }}'
;

DELETE example

Deletes the specified registries resource.

/*+ delete */
DELETE FROM digitalocean.container_registry.registries
WHERE = '{{ }}';