licenses
Creates, updates, deletes, gets or lists a licenses resource.
Overview​
| Name | licenses |
| Type | Resource |
| Id | ovh.license_hycu.licenses |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
controller_id | string | The HYCU controller ID for this license (wire: controllerId) |
service_name | string | License ID (wire: serviceName) |
comment | string | The latest comment or error message |
expiration_date | string (date-time) | The license expiration date (wire: expirationDate) |
iam | object | IAM resource metadata |
license_status | string | The license status (active, error, processing, toActivate) (wire: licenseStatus) |
HYCU license State
| Name | Datatype | Description |
|---|---|---|
controller_id | string | The HYCU controller ID for this license (wire: controllerId) |
service_name | string | License ID (wire: serviceName) |
comment | string | The latest comment or error message |
expiration_date | string (date-time) | The license expiration date (wire: expirationDate) |
iam | object | IAM resource metadata |
license_status | string | The license status (active, error, processing, toActivate) (wire: licenseStatus) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | service_name | Get HYCU license info (Beta version) | |
list | select | iam_tags, x_pagination_mode | Get list of owned HYCU licenses (Beta version) | |
update | update | service_name | Alter this object properties | |
activate | exec | serviceName, licenseRequest | Activate the HYCU license (Beta version) | |
confirm_termination | exec | serviceName, token | Confirm 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. | |
refresh | exec | serviceName | Manually refresh the HYCU license (Beta version) | |
terminate | exec | serviceName | Request 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
serviceName | string | The name of your Hycu license |
service_name | string | The name of your Hycu license (wire: serviceName) |
iam_tags | object | Filter resources on IAM tags (wire: iamTags) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
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
;
Get list of owned HYCU licenses (Beta version)
SELECT
controller_id,
service_name,
comment,
expiration_date,
iam,
license_status
FROM ovh.license_hycu.licenses
WHERE iam_tags = '{{ iam_tags }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
UPDATE examples​
- update
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
- confirm_termination
- refresh
- terminate
Activate the HYCU license (Beta version)
EXEC ovh.license_hycu.licenses.activate
@serviceName='{{ serviceName }}' --required
@@json=
'{
"licenseRequest": "{{ licenseRequest }}"
}'
;
Confirm 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.
EXEC ovh.license_hycu.licenses.confirm_termination
@serviceName='{{ serviceName }}' --required
@@json=
'{
"commentary": "{{ commentary }}",
"futureUse": "{{ futureUse }}",
"reason": "{{ reason }}",
"token": "{{ token }}"
}'
;
Manually refresh the HYCU license (Beta version)
EXEC ovh.license_hycu.licenses.refresh
@serviceName='{{ serviceName }}' --required
@@json=
'{
"licenseRequest": "{{ licenseRequest }}"
}'
;
Request service termination. Starts the termination of the service. The admin contact receives a token by email, to confirm with the confirmTermination call.
EXEC ovh.license_hycu.licenses.terminate
@serviceName='{{ serviceName }}' --required
;