Skip to main content

incidents

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

Overview​

Nameincidents
TypeResource
Idovh.xdsl.incidents

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerID of the incident
task_idintegerTask ID on travaux.ovh.com (wire: taskId)
commentstring
creation_datestring (date-time)Estimated start date (wire: creationDate)
departmentsarrayDepartment list
end_datestring (date-time)Estimated end date (wire: endDate)
nraarrayNRA list
operatorsarrayOperator
task_referencestring (wire: taskReference)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidReturns an incident with its estimated start and end dates, impacted operators, NRA and departments, and comment.
get_by_service_nameselectservice_nameReturns the generic incident that impacts the access, if any, with its estimated start and end dates, operators, NRA and departments.
listselectcreation_date, end_date, x_pagination_modeReturns the IDs of the incidents impacting xDSL accesses. Filter on the creation and end dates.

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
service_namestringService name (wire: serviceName)
creation_datestring (date-time)Filter the value of creationDate property (>) (wire: creationDate)
end_datestring (date-time)Filter the value of endDate property (<) (wire: endDate)
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 an incident with its estimated start and end dates, impacted operators, NRA and departments, and comment.

SELECT
id,
task_id,
comment,
creation_date,
departments,
end_date,
nra,
operators,
task_reference
FROM ovh.xdsl.incidents
WHERE id = '{{ id }}' -- required
;