vracks
Creates, updates, deletes, gets or lists a vracks resource.
Overview​
| Name | vracks |
| Type | Resource |
| Id | ovh.dedicated_server.vracks |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
dedicated_server | string | Dedicated Server (wire: dedicatedServer) |
vrack | string | vrack name |
vrack dedicated server interfaces (LEGACY)
| Name | Datatype | Description |
|---|---|---|
dedicated_server | string | Dedicated Server (wire: dedicatedServer) |
vrack | string | vrack name |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | service_name, vrack | Get a server link (legacy). Returns the attached server and its vRack. This is the legacy whole-server link, not an interface link. | |
list | select | service_name | x_pagination_mode | List vRacks (legacy). Returns the names of the vRacks the server is attached to as a whole, in the legacy mode. To attach a server, prefer attaching one of its interfaces in the vRack. |
delete | delete | service_name, vrack | Detach a server (legacy). Detaches a whole dedicated server from the vRack, in the legacy mode. 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_name | string | The internal name of your dedicated server (wire: serviceName) |
vrack | string | vrack name |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get a server link (legacy). Returns the attached server and its vRack. This is the legacy whole-server link, not an interface link.
SELECT
dedicated_server,
vrack
FROM ovh.dedicated_server.vracks
WHERE service_name = '{{ service_name }}' -- required
AND vrack = '{{ vrack }}' -- required
;
List vRacks (legacy). Returns the names of the vRacks the server is attached to as a whole, in the legacy mode. To attach a server, prefer attaching one of its interfaces in the vRack.
SELECT
dedicated_server,
vrack
FROM ovh.dedicated_server.vracks
WHERE service_name = '{{ service_name }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
DELETE examples​
- delete
Detach a server (legacy). Detaches a whole dedicated server from the vRack, in the legacy mode. Returns the task that performs it.
DELETE FROM ovh.dedicated_server.vracks
WHERE service_name = '{{ service_name }}' --required
AND vrack = '{{ vrack }}' --required
;