Skip to main content

license_plesk_upgrades

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

Overview​

Namelicense_plesk_upgrades
TypeResource
Idovh.order.license_plesk_upgrades

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
order_idintegerIdentifier of the order (wire: orderId)
contractsarrayList of contracts related to the order
detailsarrayDetails of the order
pricesobjectPrices of the order including with and without taxes
urlstringURL to download the order

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectduration, service_nameantispam, antivirus, application_set, domain_number, language_pack_number, powerpack, reseller_management, version, wordpress_toolkitGet prices and contracts information
listselectservice_nameantispam, antivirus, application_set, domain_number, language_pack_number, powerpack, reseller_management, version, wordpress_toolkit, x_pagination_modeGet allowed durations for 'upgrade' option
createinsertduration, service_nameCreate order

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"}})
durationstringDuration
service_namestringThe name of your Plesk license (wire: serviceName)
antispamstringThe antispam currently enabled on this Plesk License
antivirusstringThe antivirus to enable on this Plesk license
application_setstringWanted application set (wire: applicationSet)
domain_numberstringThis license domain number (wire: domainNumber)
language_pack_numberstringThe amount (between 0 and 5) of language pack numbers to include in this licences (wire: languagePackNumber)
powerpackbooleanpowerpack current activation state on your license
reseller_managementbooleanReseller management option activation (wire: resellerManagement)
versionstringThis license version
wordpress_toolkitbooleanWordpressToolkit option activation (wire: wordpressToolkit)
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 prices and contracts information

SELECT
order_id,
contracts,
details,
prices,
url
FROM ovh.order.license_plesk_upgrades
WHERE duration = '{{ duration }}' -- required
AND service_name = '{{ service_name }}' -- required
AND antispam = '{{ antispam }}'
AND antivirus = '{{ antivirus }}'
AND application_set = '{{ application_set }}'
AND domain_number = '{{ domain_number }}'
AND language_pack_number = '{{ language_pack_number }}'
AND powerpack = '{{ powerpack }}'
AND reseller_management = '{{ reseller_management }}'
AND version = '{{ version }}'
AND wordpress_toolkit = '{{ wordpress_toolkit }}'
;

INSERT examples​

Create order

INSERT INTO ovh.order.license_plesk_upgrades (
antispam,
antivirus,
application_set,
domain_number,
language_pack_number,
powerpack,
reseller_management,
version,
wordpress_toolkit,
duration,
service_name
)
SELECT
'{{ antispam }}',
'{{ antivirus }}',
'{{ application_set }}',
'{{ domain_number }}',
'{{ language_pack_number }}',
{{ powerpack }},
{{ reseller_management }},
'{{ version }}',
{{ wordpress_toolkit }},
'{{ duration }}',
'{{ service_name }}'
RETURNING
order_id,
contracts,
details,
prices,
url
;