Skip to main content

options

Creates, updates, deletes, gets or lists an options resource.

Overview​

Nameoptions
TypeResource
Idovh.dedicated_server.options

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
optionstringThe option name (BACKUPPROTOCOL, BANDWIDTH, BANDWIDTH_VRACK, OLA, SGX, TRAFFIC, TRAFFIC_DISCOVER, TUNING, TUNING_FIREWALL, TUNING_KVM, USB_KVM_IP)
statestringThe state of the option (released, subscribed)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoption, service_nameGet an option. Returns the state of an option of the server, subscribed or released. The option is identified by its name, such as BANDWIDTH, OLA or SGX.
listselectservice_namex_pagination_modeList options. Returns the names of the options of the server. Get an option to know whether it is subscribed or released.
deletedeleteoption, service_nameRelease an option. Releases an option of the server, identified by its name, such as BANDWIDTH, TRAFFIC or USB_KVM_IP. The name is one of the options a server can have and release.

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"}})
optionstringThe option name
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 an option. Returns the state of an option of the server, subscribed or released. The option is identified by its name, such as BANDWIDTH, OLA or SGX.

SELECT
option,
state
FROM ovh.dedicated_server.options
WHERE option = '{{ option }}' -- required
AND service_name = '{{ service_name }}' -- required
;

DELETE examples​

Release an option. Releases an option of the server, identified by its name, such as BANDWIDTH, TRAFFIC or USB_KVM_IP. The name is one of the options a server can have and release.

DELETE FROM ovh.dedicated_server.options
WHERE option = '{{ option }}' --required
AND service_name = '{{ service_name }}' --required
;