Skip to main content

features_ipmi_accesses

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

Overview​

Namefeatures_ipmi_accesses
TypeResource
Idovh.dedicated_server.features_ipmi_accesses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
expirationstring (date-time)Session expiration date
valuestringvalue

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_name, typeGet the IPMI session access. Returns the access value and the session expiration date for the given access type. Request the access with POST on the same route first: before that, and after expiration, the call returns an error.
createinsertservice_name, ttl, typeRequest IPMI access. Requests an IPMI session for the given access type and returns a task. Once the task is done, read the access value and its expiration date with GET on the same route. sshKey, for serial over LAN SSH access, must be a raw public SSH key.

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)
typestringIPMI console access

SELECT examples​

Get the IPMI session access. Returns the access value and the session expiration date for the given access type. Request the access with POST on the same route first: before that, and after expiration, the call returns an error.

SELECT
expiration,
value
FROM ovh.dedicated_server.features_ipmi_accesses
WHERE service_name = '{{ service_name }}' -- required
AND type = '{{ type }}' -- required
;

INSERT examples​

Request IPMI access. Requests an IPMI session for the given access type and returns a task. Once the task is done, read the access value and its expiration date with GET on the same route. sshKey, for serial over LAN SSH access, must be a raw public SSH key.

INSERT INTO ovh.dedicated_server.features_ipmi_accesses (
ip_to_allow,
ssh_key,
ttl,
type,
service_name
)
SELECT
'{{ ip_to_allow }}',
'{{ ssh_key }}',
{{ 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
;