Skip to main content

dedicated_server_interfaces

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

Overview​

Namededicated_server_interfaces
TypeResource
Idovh.vrack.dedicated_server_interfaces

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
dedicated_server_interfacestringDedicated Server Interface (wire: dedicatedServerInterface)
vrackstringvrack name

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdedicated_server_interface, service_nameGet a server interface. Returns the attached interface and its vRack.
listselectservice_namex_pagination_modeList server interfaces. Returns the dedicated server network interfaces attached to the vRack.
createinsertservice_name, dedicated_server_interfaceAttach a server interface. Attaches a dedicated server network interface to the vRack. Returns the task that performs it.
deletedeletededicated_server_interface, service_nameDetach a server interface. Detaches the interface 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"}})
dedicated_server_interfacestringDedicated Server Interface (wire: dedicatedServerInterface)
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 server interface. Returns the attached interface and its vRack.

SELECT
dedicated_server_interface,
vrack
FROM ovh.vrack.dedicated_server_interfaces
WHERE dedicated_server_interface = '{{ dedicated_server_interface }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Attach a server interface. Attaches a dedicated server network interface to the vRack. Returns the task that performs it.

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

DELETE examples​

Detach a server interface. Detaches the interface from the vRack. Returns the task that performs it.

DELETE FROM ovh.vrack.dedicated_server_interfaces
WHERE dedicated_server_interface = '{{ dedicated_server_interface }}' --required
AND service_name = '{{ service_name }}' --required
;