Skip to main content

vracks

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

Overview​

Namevracks
TypeResource
Idovh.vrack.vracks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringName of the vRack
service_namestringService name of your vRack on OVHcloud (wire: serviceName)
descriptionstringDescription of the vRack
iamobjectIAM resource metadata

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet a vRack. Returns the name and description of the vRack.
listselectiam_tags, x_pagination_modeList vRacks. Returns the service names of the vRacks of the account.
updateupdateservice_nameUpdate a vRack. Updates the name or description of the vRack.
confirm_terminationexecserviceName, tokenConfirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given.
terminateexecserviceNameRequest service termination. Starts the termination of the service. The admin contact receives a token by email, to confirm with the confirmTermination call.

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"}})
serviceNamestringThe internal name of your vrack
service_namestringThe internal name of your vrack (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 a vRack. Returns the name and description of the vRack.

SELECT
name,
service_name,
description,
iam
FROM ovh.vrack.vracks
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update a vRack. Updates the name or description of the vRack.

UPDATE ovh.vrack.vracks
SET
description = '{{ description }}',
name = '{{ name }}'
WHERE
service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Confirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given.

EXEC ovh.vrack.vracks.confirm_termination
@serviceName='{{ serviceName }}' --required
@@json=
'{
"commentary": "{{ commentary }}",
"futureUse": "{{ futureUse }}",
"reason": "{{ reason }}",
"token": "{{ token }}"
}'
;