Skip to main content

licenses

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

Overview​

Namelicenses
TypeResource
Idovh.license_plesk.licenses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
license_idstringThe license id on license provider side (wire: licenseId)
creationstring (date-time)This license creation date
delete_at_expirationbooleanShall we delete this on expiration ? (wire: deleteAtExpiration)
domainstringThe internal name of your license
domain_numberstringThe amount of domain this license can manage (0, 1, 10, 100, 30, 300, unlimited) (wire: domainNumber)
iamobjectIAM resource metadata
information_keystringThis license Information key (wire: informationKey)
ipstring (ipv4)The ip on which this license is attached (example: 192.0.2.0)
keystringThis license key
product_keystringThis license product key (wire: productKey)
statusstringThis license state (ok, released, terminated, toDeliver)
versionstringThis license version (PLESK_10_AND_LATER, PLESK_10_AND_LATER_FOR_KVM, PLESK_10_AND_LATER_FOR_VMWARE, PLESK_10_AND_LATER_FOR_VZ, PLESK_10_AND_LATER_FOR_WIN, PLESK_10_AND_LATER_FOR_WIN_FOR_VMWARE, PLESK_10_AND_LATER_FOR_WIN_FOR_VZ, PLESK_10_AND_LATER_FOR_WIN_FOR_XEN, PLESK_10_AND_LATER_FOR_XEN, PLESK_12_VPS_WEB_ADMIN, PLESK_12_VPS_WEB_APP, PLESK_12_VPS_WEB_HOST, PLESK_12_VPS_WEB_HOST_CLNX, PLESK_12_VPS_WEB_PRO, PLESK_12_VPS_WEB_PRO_CLNX, PLESK_12_WEB_ADMIN, PLESK_12_WEB_APP, PLESK_12_WEB_HOST, PLESK_12_WEB_HOST_CLNX, PLESK_12_WEB_PRO, PLESK_12_WEB_PRO_CLNX, PLESK_75_RELOADED, PLESK_80, PLESK_80_FOR_VZ, PLESK_81_FOR_WIN, PLESK_9, PLESK_95, PLESK_95_FOR_VZ, PLESK_95_FOR_WIN, PLESK_9_FOR_VZ, PLESK_9_FOR_WIN, PLESK_ONYX_VPS_WEB_ADMIN, PLESK_ONYX_VPS_WEB_APP, PLESK_ONYX_VPS_WEB_HOST, PLESK_ONYX_VPS_WEB_HOST_CLNX, PLESK_ONYX_VPS_WEB_PRO, PLESK_ONYX_VPS_WEB_PRO_CLNX, PLESK_ONYX_WEB_ADMIN, PLESK_ONYX_WEB_APP, PLESK_ONYX_WEB_HOST, PLESK_ONYX_WEB_HOST_CLNX, PLESK_ONYX_WEB_PRO, PLESK_ONYX_WEB_PRO_CLNX, PLESK_VPS_WEB_ADMIN, PLESK_VPS_WEB_HOST, PLESK_VPS_WEB_PRO, PLESK_WEB_ADMIN, PLESK_WEB_HOST, PLESK_WEB_PRO, plesk-12-webadmin, plesk-12-webadmin-for-vps, plesk-12-webhost, plesk-12-webhost-for-vps, plesk-12-webpro, plesk-12-webpro-for-vps, plesk-webadmin, plesk-webadmin-for-vps, plesk-webhost, plesk-webhost-for-vps, plesk-webpro, plesk-webpro-for-vps)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet this object properties
listselectiam_tags, x_pagination_modeList available services
updateupdateservice_nameAlter this object properties
change_ipexecserviceName, destinationIpMove this license to another Ip
confirm_terminationexecserviceName, tokenConfirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given.
terminateexecserviceNameRequest service termination. Starts the termination of the service. The admin contact receives a token by email, to confirm with the confirmTermination call.

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"}})
serviceNamestringThe name of your Plesk license
service_namestringThe name of your Plesk license (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
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
license_id,
creation,
delete_at_expiration,
domain,
domain_number,
iam,
information_key,
ip,
key,
product_key,
status,
version
FROM ovh.license_plesk.licenses
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Alter this object properties

UPDATE ovh.license_plesk.licenses
SET
delete_at_expiration = {{ delete_at_expiration }}
WHERE
service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Move this license to another Ip

EXEC ovh.license_plesk.licenses.change_ip
@serviceName='{{ serviceName }}' --required
@@json=
'{
"destinationIp": "{{ destinationIp }}"
}'
;