Skip to main content

virtual_network_interfaces

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

Overview​

Namevirtual_network_interfaces
TypeResource
Idovh.dedicated_server.virtual_network_interfaces

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringUser defined VirtualNetworkInterface name
server_namestringServer bound to this VirtualNetworkInterface (wire: serverName)
enabledbooleanVirtualNetworkInterface activation state
modestringVirtualNetworkInterface mode (public, public_aggregation, vrack, vrack_aggregation)
network_interface_controllerarrayNetworkInterfaceControllers bound to this VirtualNetworkInterface (wire: networkInterfaceController)
uuidstring (uuid)VirtualNetworkInterface unique id
vrackstringvRack name

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_uuidselectservice_name, uuidGet a virtual network interface. Returns the name, mode, activation state and vRack of a virtual network interface, and the network interface controllers bound to it. (Beta version)
getselectuuidReturns a virtual network interface from its UUID alone, without the server name in the path. The response includes the server it is bound to, its mode, its vRack and its network interface controllers.
listselectservice_nameenabled, mode, name, vrack, x_pagination_modeList virtual network interfaces. Returns the UUIDs of the virtual network interfaces of the server. Filter them by enabled, mode, vrack or name. (Beta version)

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_namestringThe internal name of your dedicated server (wire: serviceName)
uuidstring (uuid)Uuid
enabledbooleanFilter the value of enabled property (=)
modestringFilter the value of mode property (=)
namestringFilter the value of name property (=)
vrackstringFilter the value of vrack property (=)
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 virtual network interface. Returns the name, mode, activation state and vRack of a virtual network interface, and the network interface controllers bound to it. (Beta version)

SELECT
name,
server_name,
enabled,
mode,
network_interface_controller,
uuid,
vrack
FROM ovh.dedicated_server.virtual_network_interfaces
WHERE service_name = '{{ service_name }}' -- required
AND uuid = '{{ uuid }}' -- required
;