Skip to main content

diagnostics

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

Overview​

Namediagnostics
TypeResource
Idovh.xdsl.diagnostics

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
capabilitiesobjectAvailable tests for this access
diagnostic_timestring (date-time)Datime of the diagnostic (wire: diagnosticTime)
incidentbooleanIs there an ongoing genericIncident on the access ?
is_active_on_lnsbooleanIs the access active on its primary or secondary LNS (wire: isActiveOnLns)
is_modem_connectedbooleanIs the modem connected ? (wire: isModemConnected)
line_detailsarrayTest details by line (wire: lineDetails)
maintenancebooleanIs there an ongoing scheduled maintenance by operator on the access ?
pingbooleanDoes the access ping ?
remainingintegerRemaining number of diagnostic for this access

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the last diagnostic of the access: modem connection, ping, LNS activity, ongoing incident or maintenance, line details, available tests and remaining diagnostics.
createinsertservice_nameStarts a diagnostic of the access. 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"}})
service_namestringService name (wire: serviceName)

SELECT examples​

Returns the last diagnostic of the access: modem connection, ping, LNS activity, ongoing incident or maintenance, line details, available tests and remaining diagnostics.

SELECT
capabilities,
diagnostic_time,
incident,
is_active_on_lns,
is_modem_connected,
line_details,
maintenance,
ping,
remaining
FROM ovh.xdsl.diagnostics
WHERE service_name = '{{ service_name }}' -- required
;

INSERT examples​

Starts a diagnostic of the access. Returns the task that performs the change.

INSERT INTO ovh.xdsl.diagnostics (
service_name
)
SELECT
'{{ service_name }}'
RETURNING
id,
done_date,
function,
is_archived,
status,
todo_date,
update_date
;