Skip to main content

boots

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

Overview​

Nameboots
TypeResource
Idovh.dedicated_server.boots

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
boot_idintegerboot id (wire: bootId)
boot_typestringthe boot system (harddisk, internal, network, power, rescue) (wire: bootType)
descriptionstringthe boot description
kernelstringThe boot kernel

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectboot_id, service_nameGet a netboot. Returns a netboot compatible with the server: its boot type, its kernel and its description.
listselectservice_nameboot_type, x_pagination_modeList compatible netboots. Returns the identifiers of the netboots compatible with the server. Filter them by boot type (harddisk, network, rescue, internal or power) with the bootType parameter.

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"}})
boot_idintegerboot id (wire: bootId)
service_namestringThe internal name of your dedicated server (wire: serviceName)
boot_typestringFilter the value of bootType property (=) (wire: bootType)
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​

Get a netboot. Returns a netboot compatible with the server: its boot type, its kernel and its description.

SELECT
boot_id,
boot_type,
description,
kernel
FROM ovh.dedicated_server.boots
WHERE boot_id = '{{ boot_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;