Skip to main content

network_interface_controllers

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

Overview​

Namenetwork_interface_controllers
TypeResource
Idovh.dedicated_server.network_interface_controllers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
link_typestringNetworkInterfaceController linkType (isolated, private, private_lag, provisioning, provisioning_lag, public, public_lag) (wire: linkType)
macstring (mac-address)NetworkInterfaceController mac (example: 00:00:5e:00:53:01)
virtual_network_interfacestring (uuid)VirtualNetworkInterface bound to this NetworkInterfaceController (wire: virtualNetworkInterface)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmac, service_nameGet a network interface controller. Returns the MAC address of a network interface controller, its link type, such as public, private or isolated, and the virtual network interface bound to it. (Beta version)
listselectservice_namelink_type, x_pagination_modeList network interface controllers. Returns the MAC addresses of the network interface controllers of the server. Filter them by link type with the linkType parameter. (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"}})
macstring (mac-address)NetworkInterfaceController mac
service_namestringThe internal name of your dedicated server (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 network interface controller. Returns the MAC address of a network interface controller, its link type, such as public, private or isolated, and the virtual network interface bound to it. (Beta version)

SELECT
link_type,
mac,
virtual_network_interface
FROM ovh.dedicated_server.network_interface_controllers
WHERE mac = '{{ mac }}' -- required
AND service_name = '{{ service_name }}' -- required
;