Skip to main content

interfaces

Creates, updates, deletes, gets or lists an interfaces resource.

Overview​

Nameinterfaces
TypeResource
Idovh.ovh_cloud_connect.interfaces

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerInterface reference
device_display_namestringPatch panel name (wire: deviceDisplayName)
device_rack_display_namestringEquipment name in the rack (wire: deviceRackDisplayName)
interface_namestringPort location (wire: interfaceName)
incoming_light_statusstringStatus of the light received on the port (checked every 5 min) (down, unknown, up) (wire: incomingLightStatus)
incoming_light_valuenumberValue of the light received on the port (checked every 5 min) (wire: incomingLightValue)
interface_statusstringStatus of the interface (down, unknown, up) (wire: interfaceStatus)
interface_status_last_updatestring (date-time)Date of the last interface status change detected (wire: interfaceStatusLastUpdate)
interface_termination_typestringFiber termination type (LC/PC, SC/PC) (wire: interfaceTerminationType)
light_last_updatestring (date-time)Date of the last light change detected (wire: lightLastUpdate)
outgoing_light_statusstringStatus of the light emitted on the port (checked every 5 min) (down, unknown, up) (wire: outgoingLightStatus)
outgoing_light_valuenumberValue of the light emitted on the port (checked every 5 min) (wire: outgoingLightValue)
statusstringStatus of the port (disabled, enabled, reserved)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameReturns the port's location, patch panel, status, connector type and optical light levels.
listselectservice_namex_pagination_modeReturns the IDs of the service's physical ports.
lockexecid, serviceNameBlocks all traffic on the port until it is unlocked (async task).
unlockexecid, serviceNameRestores traffic on a locked port (async task).

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"}})
idintegerId
serviceNamestring (uuid)Service name
service_namestring (uuid)Service name (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​

Returns the port's location, patch panel, status, connector type and optical light levels.

SELECT
id,
device_display_name,
device_rack_display_name,
interface_name,
incoming_light_status,
incoming_light_value,
interface_status,
interface_status_last_update,
interface_termination_type,
light_last_update,
outgoing_light_status,
outgoing_light_value,
status
FROM ovh.ovh_cloud_connect.interfaces
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Blocks all traffic on the port until it is unlocked (async task).

EXEC ovh.ovh_cloud_connect.interfaces.lock
@id='{{ id }}' --required,
@serviceName='{{ serviceName }}' --required
;