Skip to main content

data_regions

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

Overview​

Namedata_regions
TypeResource
Idovh.cloud_ai.data_regions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringRegion id
cli_install_urlstringClient Install Url (wire: cliInstallUrl)
documentation_urlstringDocumentation Url (wire: documentationUrl)
registry_urlstringRegion Registry Url (wire: registryUrl)
versionstringRegion version

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectregion, service_nameGet Region Information
listselectservice_nameList Region

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"}})
regionstringRegion
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

Get Region Information

SELECT
id,
cli_install_url,
documentation_url,
registry_url,
version
FROM ovh.cloud_ai.data_regions
WHERE region = '{{ region }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;