registries
Creates, updates, deletes, gets or lists a registries
resource.
Overview
Name | registries |
Type | Resource |
Id | digitalocean.container_registry.registries |
Fields
Name | Datatype | Description |
---|---|---|
column_anon | `` |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
registry_get | SELECT |
| To get information about your container registry, send a GET request to /v2/registry . |
registry_create | INSERT | data__name, data__subscription_tier_slug | To 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_delete | DELETE |
| To delete your container registry, destroying all container image data stored in it, send a DELETE request to /v2/registry . |
registry_validate_name | EXEC | data__name | To 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.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO digitalocean.container_registry.registries (
data__name,
data__subscription_tier_slug,
data__region
)
SELECT
'{{ name }}',
'{{ subscription_tier_slug }}',
'{{ region }}'
;
/*+ create */
INSERT INTO digitalocean.container_registry.registries (
data__name,
data__subscription_tier_slug
)
SELECT
'{{ name }}',
'{{ subscription_tier_slug }}'
;
- name: registries
props:
- name: data__name
value: string
- name: data__subscription_tier_slug
value: string
- name: name
value: string
- name: subscription_tier_slug
value: string
- name: region
value: string
DELETE
example
Deletes the specified registries
resource.
/*+ delete */
DELETE FROM digitalocean.container_registry.registries
WHERE = '{{ }}';