interventions
Creates, updates, deletes, gets or lists an interventions resource.
Overview​
| Name | interventions |
| Type | Resource |
| Id | ovh.dedicated_server.interventions |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
intervention_id | integer | The intervention id (wire: interventionId) |
date | string (date-time) | the intervention start date |
type | string | the intervention type |
Intervention made on this server
| Name | Datatype | Description |
|---|---|---|
intervention_id | integer | The intervention id (wire: interventionId) |
date | string (date-time) | the intervention start date |
type | string | the intervention type |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | intervention_id, service_name | Get a past intervention. Returns the start date and the type of a technical intervention made on the server. | |
list | select | service_name | x_pagination_mode | List past interventions. Returns the IDs of the technical interventions made on the server. Get an intervention to read its start date and type. |
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"}}) |
intervention_id | integer | The intervention id (wire: interventionId) |
service_name | string | The internal name of your dedicated server (wire: serviceName) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get a past intervention. Returns the start date and the type of a technical intervention made on the server.
SELECT
intervention_id,
date,
type
FROM ovh.dedicated_server.interventions
WHERE intervention_id = '{{ intervention_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;
List past interventions. Returns the IDs of the technical interventions made on the server. Get an intervention to read its start date and type.
SELECT
intervention_id,
date,
type
FROM ovh.dedicated_server.interventions
WHERE service_name = '{{ service_name }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;