Skip to main content

lines_dslam_ports

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

Overview​

Namelines_dslam_ports
TypeResource
Idovh.xdsl.lines_dslam_ports

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
last_desync_datestring (date-time)Last time the port lost the synchronization (wire: lastDesyncDate)
last_sync_datestring (date-time)Last time the port synchronized (wire: lastSyncDate)
profileobjectProfile on the DSLAM
statusstringDifferent states of a DSLAM port (activated, deactivated, outofsync)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectnumber, service_nameReturns the status and profile of the DSLAM port of the line, with its last synchronization and desynchronization dates.
change_profileexecnumber, serviceName, dslamProfileIdApplies one of the available profiles to the DSLAM port of the line. Returns the task that performs the change.
resetexecnumber, serviceNameResets the port of the line on the DSLAM. Returns the task that performs the change.

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"}})
numberstringNumber
serviceNamestringService name
service_namestringService name (wire: serviceName)

SELECT examples​

Returns the status and profile of the DSLAM port of the line, with its last synchronization and desynchronization dates.

SELECT
last_desync_date,
last_sync_date,
profile,
status
FROM ovh.xdsl.lines_dslam_ports
WHERE number = '{{ number }}' -- required
AND service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Applies one of the available profiles to the DSLAM port of the line. Returns the task that performs the change.

EXEC ovh.xdsl.lines_dslam_ports.change_profile
@number='{{ number }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"dslamProfileId": {{ dslamProfileId }}
}'
;