Skip to main content

options

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

Overview​

Nameoptions
TypeResource
Idovh.license_plesk.options

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
amountstringQuantity or corresponding label of the designated option enabled on your license
can_be_deletedbooleanSpecifies whether this option can be released or not (wire: canBeDeleted)
expiration_datestring (date-time)This option expiration date (wire: expirationDate)
labelstringThis option designation (ANTISPAM_SPAMASSASSIN, ANTIVIRUS_DRWEB, ANTIVIRUS_KASPERSKY, DOMAINS, LANGUAGE_PACK, POWERPACK, SQL_SERVER, VIRTUOZZO_CONTAINERS)
versionstringThis option related version

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlabel, service_nameGet this object properties
listselectservice_namex_pagination_modeoptions attached to this license
deletedeletelabel, service_namerelease this 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"}})
labelstringThis option designation
service_namestringThe name of your Plesk license (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 this object properties

SELECT
amount,
can_be_deleted,
expiration_date,
label,
version
FROM ovh.license_plesk.options
WHERE label = '{{ label }}' -- required
AND service_name = '{{ service_name }}' -- required
;

DELETE examples​

release this Option

DELETE FROM ovh.license_plesk.options
WHERE label = '{{ label }}' --required
AND service_name = '{{ service_name }}' --required
;