Skip to main content

reference_regions

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

Overview​

Namereference_regions
TypeResource
Idovh.public_cloud.reference_regions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringRegion identifier, for example GRA1
datacenter_namestringDatacenter display name (wire: datacenterName)
activatedbooleanWhether the region is activated on the project. When false, the region exists but has not yet been activated for the project.
availability_zonesarrayAvailability zones in this region (wire: availabilityZones)
continentstringContinent code
countrystringCountry code
object_storageobjectObject storage capabilities of the region. Null when the region offers no object storage. (wire: objectStorage)
servicesarrayAvailable services. Includes objectStorage when S3â„¢ object storage is available in the region, that is the region has a non-null objectStorage block whose bareContainerOnly is false.
statusstringRegion status (DISABLED, ENABLED, MAINTENANCE)
typestringRegion type. Null when the catalog reports an unrecognized type. (LOCAL-ZONE, REGION-1-AZ, REGION-3-AZ)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, project_idReturns one region: its availability zones, location, status and available services, including its object storage capabilities. (Beta version)
listselectproject_idx_pagination_cursor, x_pagination_sizeReturns the regions with their type, status, location and available services. (Beta version)

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"}})
namestringName
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns one region: its availability zones, location, status and available services, including its object storage capabilities. (Beta version)

SELECT
name,
datacenter_name,
activated,
availability_zones,
continent,
country,
object_storage,
services,
status,
type
FROM ovh.public_cloud.reference_regions
WHERE name = '{{ name }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;