Skip to main content

vracks

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

Overview​

Namevracks
TypeResource
Idovh.dedicated_cloud.vracks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
vlan_idintegerDedicated cloud vlanId used (wire: vlanId)
dedicated_cloudstringyour dedicated cloud service (wire: dedicatedCloud)
vrackstringvrack name

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_name, vrackGet a service. Returns the attached Hosted Private Cloud service and its vRack.
listselectservice_namex_pagination_modeList vRacks
deletedeleteservice_name, vrackDetach a service. Detaches the Hosted Private Cloud service from the vRack. Returns the task that performs it.

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_namestringDomain of the service (wire: serviceName)
vrackstringvrack name
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 a service. Returns the attached Hosted Private Cloud service and its vRack.

SELECT
vlan_id,
dedicated_cloud,
vrack
FROM ovh.dedicated_cloud.vracks
WHERE service_name = '{{ service_name }}' -- required
AND vrack = '{{ vrack }}' -- required
;

DELETE examples​

Detach a service. Detaches the Hosted Private Cloud service from the vRack. Returns the task that performs it.

DELETE FROM ovh.dedicated_cloud.vracks
WHERE service_name = '{{ service_name }}' --required
AND vrack = '{{ vrack }}' --required
;