Skip to main content

housings

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

Overview​

Namehousings
TypeResource
Idovh.dedicated_housing.housings

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringThe name you give to the bay
datacenterstringHousing bay datacenter (gsw, pdc1)
iamobjectIAM resource metadata
networkarrayHousing bay network
optionsobjectHousing bay options
rackstringThe bay's description
security_codestringBay Security code (wire: securityCode)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet this object properties
listselectiam_tags, x_pagination_modeList available services

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"}})
service_namestringThe internal name of your Housing bay (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get this object properties

SELECT
name,
datacenter,
iam,
network,
options,
rack,
security_code
FROM ovh.dedicated_housing.housings
WHERE service_name = '{{ service_name }}' -- required
;