Skip to main content

options

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

Overview​

Nameoptions
TypeResource
Idovh.domain.options

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
expiration_datestring (date-time)Expiration date of the option (wire: expirationDate)
optionstringThe option name (dnsAnycast)
statestringThe state of the option (released, subscribed)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoption, service_nameGet details on this domain option
listselectservice_namex_pagination_modeList domain options
deletedeleteoption, service_nameRemove a given option

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)
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 details on this domain option

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

DELETE examples​

Remove a given option

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