Skip to main content

options

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

Overview​

Nameoptions
TypeResource
Idovh.vps.options

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
optionstringThe option name (additionalDisk, automatedBackup, cpanel, ftpbackup, plesk, snapshot, veeam, windows)
statestringThe state of the option (released, subscribed)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoption, service_nameReturns the option and its state on the VPS.
listselectservice_namex_pagination_modeReturns the options attached to the VPS.
deletedeleteoption, service_namedelete_nowReleases an option from the VPS. This call is deprecated. (Deprecated, will be removed)

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"}})
optionstringOption
service_namestringService name (wire: serviceName)
delete_nowbooleanDelete option now, don't wait for expiration (wire: deleteNow)
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​

Returns the option and its state on the VPS.

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

DELETE examples​

Releases an option from the VPS. This call is deprecated. (Deprecated, will be removed)

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