can_license_be_moved_tos
Creates, updates, deletes, gets or lists a can_license_be_moved_tos resource.
Overview​
| Name | can_license_be_moved_tos |
| Type | Resource |
| Id | ovh.license_worklight.can_license_be_moved_tos |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
message | string | Messages from change IP (OK, destinationNotAllowed, licenseAlreadyExists, notAllowedToHandleThis, notSameType, sameIp, versionNotAllowed) |
success | boolean |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | destination_ip, service_name | Will 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.
| 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"}}) |
destination_ip | string (ipv4) | The Ip on which you want to move this license (wire: destinationIp) |
service_name | string | The name of your WorkLight license (wire: serviceName) |
SELECT examples​
- get
Will tell if the ip can accept the license
SELECT
message,
success
FROM ovh.license_worklight.can_license_be_moved_tos
WHERE destination_ip = '{{ destination_ip }}' -- required
AND service_name = '{{ service_name }}' -- required
;