lines_dslam_port_logs
Creates, updates, deletes, gets or lists a lines_dslam_port_logs resource.
Overview​
| Name | lines_dslam_port_logs |
| Type | Resource |
| Id | ovh.xdsl.lines_dslam_port_logs |
Fields​
The following fields are returned by SELECT queries:
- list
A message log from the DSLAM
| Name | Datatype | Description |
|---|---|---|
date | string (date-time) | |
last_occurrence_date | string (date-time) | The last time this message occured (wire: lastOccurrenceDate) |
message | string | |
number_of_occurrences | integer | The number of times this message occured between date and lastOccurrenceDate (wire: numberOfOccurrences) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | limit, number, service_name | Returns the messages the DSLAM emitted for the port of the line, with their date, last occurrence and number of occurrences. |
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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
limit | integer | |
number | string | Number |
service_name | string | Service name (wire: serviceName) |
SELECT examples​
- list
Returns the messages the DSLAM emitted for the port of the line, with their date, last occurrence and number of occurrences.
SELECT
date,
last_occurrence_date,
message,
number_of_occurrences
FROM ovh.xdsl.lines_dslam_port_logs
WHERE limit = '{{ limit }}' -- required
AND number = '{{ number }}' -- required
AND service_name = '{{ service_name }}' -- required
;