Skip to main content

lines

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

Overview​

Namelines
TypeResource
Idovh.xdsl.lines

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
concentration_pointobjectData to identify the line at the concentration point (wire: concentrationPoint)
deconsolidationstringDeconsolidation of the line. (createNeighbour, creation, creationNeighbour, partial, total)
direct_distributionbooleanTrue if the line is directly wired on the DSLAM (wire: directDistribution)
distanceintegerDistance in meters from the DSLAM
fault_repair_timestringMaximum time needed to repair a landline (10HO, 4HNO, 4HO, DPLUS1, NORMAL) (wire: faultRepairTime)
line_sections_lengtharrayDetailed information about the sections between the DSLAM and the telephone jack (wire: lineSectionsLength)
mitigationnumberMitigation of the line in dB
numberstringThe number of the line
original_numberstringThe number used to place the order. Null if the same as the current number. (wire: originalNumber)
portabilitybooleanWhether the line number has been ported to OVH, to be used with VoIP service
sync_downnumberThe download synchronisation on the DSLAM in Kbps (wire: syncDown)
sync_upnumberThe upload synchronisation on the DSLAM in Kbps (wire: syncUp)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectnumber, service_nameReturns the line number, distance and sections to the DSLAM, synchronization rates, mitigation, deconsolidation, portability and fault repair time.
listselectservice_namex_pagination_modeReturns the numbers of the copper lines of the access.
diagnostic_cancelexecnumber, serviceNameCancels the ongoing advanced diagnostic of the line, when it can still be canceled.
diagnostic_runexecnumber, serviceName, faultTypeStarts or continues the advanced diagnostic of the line with the customer answers and actions done. Returns the diagnostic with its status, fault type and data.

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)
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 line number, distance and sections to the DSLAM, synchronization rates, mitigation, deconsolidation, portability and fault repair time.

SELECT
concentration_point,
deconsolidation,
direct_distribution,
distance,
fault_repair_time,
line_sections_length,
mitigation,
number,
original_number,
portability,
sync_down,
sync_up
FROM ovh.xdsl.lines
WHERE number = '{{ number }}' -- required
AND service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Cancels the ongoing advanced diagnostic of the line, when it can still be canceled.

EXEC ovh.xdsl.lines.diagnostic_cancel
@number='{{ number }}' --required,
@serviceName='{{ serviceName }}' --required
;