Skip to main content

features_ipmi_tests

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

Overview​

Namefeatures_ipmi_tests
TypeResource
Idovh.dedicated_server.features_ipmi_tests

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
datestring (date-time)Test running date
statusstringTest result

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_name, typeGet an IPMI test result. Returns the result and the run date of the IPMI test of the given type: http, password or ping. Launch the test with POST on the same route first; the result is kept only for the ttl given at launch.
createinsertservice_name, ttl, typeTest the IPMI interface. Launches an http, password or ping test on the IPMI interface and returns a task. ttl sets how long the result is kept: 1, 3, 5, 10 or 15 minutes. The result is read with GET on the same route.

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_namestringThe internal name of your dedicated server (wire: serviceName)
typestringTest type result on KVM IPMI interface

SELECT examples​

Get an IPMI test result. Returns the result and the run date of the IPMI test of the given type: http, password or ping. Launch the test with POST on the same route first; the result is kept only for the ttl given at launch.

SELECT
date,
status
FROM ovh.dedicated_server.features_ipmi_tests
WHERE service_name = '{{ service_name }}' -- required
AND type = '{{ type }}' -- required
;

INSERT examples​

Test the IPMI interface. Launches an http, password or ping test on the IPMI interface and returns a task. ttl sets how long the result is kept: 1, 3, 5, 10 or 15 minutes. The result is read with GET on the same route.

INSERT INTO ovh.dedicated_server.features_ipmi_tests (
ttl,
type,
service_name
)
SELECT
{{ ttl }} /* required */,
'{{ type }}' /* required */,
'{{ service_name }}'
RETURNING
planned_intervention_id,
task_id,
change_uuid,
comment,
done_date,
function,
last_update,
need_schedule,
note,
start_date,
status,
tags,
ticket_reference
;