Skip to main content

licenses

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

Overview​

Namelicenses
TypeResource
Idovh.license_hycu.licenses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
controller_idstringThe HYCU controller ID for this license (wire: controllerId)
service_namestringLicense ID (wire: serviceName)
commentstringThe latest comment or error message
expiration_datestring (date-time)The license expiration date (wire: expirationDate)
iamobjectIAM resource metadata
license_statusstringThe license status (active, error, processing, toActivate) (wire: licenseStatus)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet HYCU license info (Beta version)
listselectiam_tags, x_pagination_modeGet list of owned HYCU licenses (Beta version)
updateupdateservice_nameAlter this object properties
activateexecserviceName, licenseRequestActivate the HYCU license (Beta version)
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.
refreshexecserviceNameManually refresh the HYCU license (Beta version)
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 Hycu license
service_namestringThe name of your Hycu 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 HYCU license info (Beta version)

SELECT
controller_id,
service_name,
comment,
expiration_date,
iam,
license_status
FROM ovh.license_hycu.licenses
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Alter this object properties

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

Lifecycle Methods​

EXEC variables use wire (API) names.

Activate the HYCU license (Beta version)

EXEC ovh.license_hycu.licenses.activate
@serviceName='{{ serviceName }}' --required
@@json=
'{
"licenseRequest": "{{ licenseRequest }}"
}'
;