Skip to main content

registries

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

Overview​

Nameregistries
TypeResource
Idovh.cloud_ai.registries

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringRegistry Id
created_atstring (date-time)Registry creation date (wire: createdAt)
passwordstring (password)Docker registry password
regionstringRegion where the registry is available
updated_atstring (date-time)Registry update date (wire: updatedAt)
urlstringDocker registry URL
userstringRegistry user creator
usernamestringDocker registry username

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectregistry_id, service_nameGet information about a Docker registry
listselectservice_nameList Docker registries
createinsertservice_name, password, region, url, usernameCreate a Docker registry
updateupdateregistry_id, service_nameUpdate a Docker registry
deletedeleteregistry_id, service_nameDelete a Docker registry

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
registry_idstringRegistry ID (wire: registryId)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

Get information about a Docker registry

SELECT
id,
created_at,
password,
region,
updated_at,
url,
user,
username
FROM ovh.cloud_ai.registries
WHERE registry_id = '{{ registry_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

Create a Docker registry

INSERT INTO ovh.cloud_ai.registries (
password,
region,
url,
username,
service_name
)
SELECT
'{{ password }}' /* required */,
'{{ region }}' /* required */,
'{{ url }}' /* required */,
'{{ username }}' /* required */,
'{{ service_name }}'
RETURNING
id,
created_at,
password,
region,
updated_at,
url,
user,
username
;

UPDATE examples​

Update a Docker registry

UPDATE ovh.cloud_ai.registries
SET
password = '{{ password }}',
url = '{{ url }}',
username = '{{ username }}'
WHERE
registry_id = '{{ registry_id }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set;

DELETE examples​

Delete a Docker registry

DELETE FROM ovh.cloud_ai.registries
WHERE registry_id = '{{ registry_id }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;