Skip to main content

boot_options

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

Overview​

Nameboot_options
TypeResource
Idovh.dedicated_server.boot_options

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
optionstringThe option of this boot (cpufamily, grsec, ipv6, smp)
valuestringthe value of this option

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectboot_id, option, service_nameGet a netboot option. Returns the value of an option activated on the netboot. The option is one of cpufamily, grsec, ipv6 or smp.
listselectboot_id, service_namex_pagination_modeList netboot options. Returns the options activated on the netboot, among cpufamily, grsec, ipv6 and smp.

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)
optionstringThe option of this boot
service_namestringThe internal name of your dedicated server (wire: serviceName)
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 option. Returns the value of an option activated on the netboot. The option is one of cpufamily, grsec, ipv6 or smp.

SELECT
option,
value
FROM ovh.dedicated_server.boot_options
WHERE boot_id = '{{ boot_id }}' -- required
AND option = '{{ option }}' -- required
AND service_name = '{{ service_name }}' -- required
;