Skip to main content

can_license_be_moved_tos

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

Overview​

Namecan_license_be_moved_tos
TypeResource
Idovh.license_virtuozzo.can_license_be_moved_tos

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
messagestringMessages from change IP (OK, destinationNotAllowed, licenseAlreadyExists, notAllowedToHandleThis, notSameType, sameIp, versionNotAllowed)
successboolean

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdestination_ip, service_nameWill tell if the ip can accept the license

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"}})
destination_ipstring (ipv4)The Ip on which you want to move this license (wire: destinationIp)
service_namestringThe name of your Virtuozzo license (wire: serviceName)

SELECT examples​

Will tell if the ip can accept the license

SELECT
message,
success
FROM ovh.license_virtuozzo.can_license_be_moved_tos
WHERE destination_ip = '{{ destination_ip }}' -- required
AND service_name = '{{ service_name }}' -- required
;