Skip to main content

legacy_vracks

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

Overview​

Namelegacy_vracks
TypeResource
Idovh.vrack.legacy_vracks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
vlan_idintegervlan to set on legacy vrack equipments (wire: vlanId)
legacy_vrackstringyour legacy vrack service (wire: legacyVrack)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlegacy_vrack, service_nameGet a legacy vRack (deprecated). Returns the bridged legacy vRack. (Deprecated, will be removed)
listselectservice_namex_pagination_modeList legacy vRacks (deprecated). Returns the legacy vRacks (vrackXXXX) bridged in the vRack. (Deprecated, will be removed)
createinsertservice_name, legacy_vrackAttach a legacy vRack (deprecated). Bridges a legacy vRack (vrackXXXX) in the vRack (pn-XXXX). Returns the task that performs it. (Deprecated, will be removed)
deletedeletelegacy_vrack, service_nameDetach a legacy vRack (deprecated). Removes the legacy vRack from the vRack. Returns the task that performs it. (Deprecated, will be removed)

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"}})
legacy_vrackstringyour legacy vrack service (wire: legacyVrack)
service_namestringThe internal name of your vrack (wire: serviceName)
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 legacy vRack (deprecated). Returns the bridged legacy vRack. (Deprecated, will be removed)

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

INSERT examples​

Attach a legacy vRack (deprecated). Bridges a legacy vRack (vrackXXXX) in the vRack (pn-XXXX). Returns the task that performs it. (Deprecated, will be removed)

INSERT INTO ovh.vrack.legacy_vracks (
legacy_vrack,
service_name
)
SELECT
'{{ legacy_vrack }}' /* required */,
'{{ service_name }}'
RETURNING
id,
order_id,
service_name,
function,
last_update,
status,
target_domain,
todo_date
;

DELETE examples​

Detach a legacy vRack (deprecated). Removes the legacy vRack from the vRack. Returns the task that performs it. (Deprecated, will be removed)

DELETE FROM ovh.vrack.legacy_vracks
WHERE legacy_vrack = '{{ legacy_vrack }}' --required
AND service_name = '{{ service_name }}' --required
;