moves
Creates, updates, deletes, gets or lists a moves resource.
Overview​
| Name | moves |
| Type | Resource |
| Id | ovh.ip.moves |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
cloud_project | array | list of public cloud projects (wire: cloudProject) |
dedicated_cloud | array | list of dedicated clouds (wire: dedicatedCloud) |
dedicated_server | array | list of dedicated servers (wire: dedicatedServer) |
hosting_reseller | array | list of hosting reseller services (wire: hostingReseller) |
ip_loadbalancing | array | list of load balancing services (wire: ipLoadbalancing) |
snc_cloud_platform | array | list of SNC Cloud Platform projects (wire: sncCloudPlatform) |
vmware_cloud_director | array | list of VMware Cloud Director organization services (wire: vmwareCloudDirector) |
vps | array | list of vps |
vrack_services_bgp | array | list of BGP vrack services services (wire: vrackServicesBgp) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | ip | List move destinations. Returns, per service type, the services this IP can move to and their next hops. (Beta version) | |
create | insert | ip, to | Move an IP. Routes the IP to another service of your account, with an optional next hop (async task). |
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"}}) |
ip | string (ip-block) |
SELECT examples​
- get
List move destinations. Returns, per service type, the services this IP can move to and their next hops. (Beta version)
SELECT
cloud_project,
dedicated_cloud,
dedicated_server,
hosting_reseller,
ip_loadbalancing,
snc_cloud_platform,
vmware_cloud_director,
vps,
vrack_services_bgp
FROM ovh.ip.moves
WHERE ip = '{{ ip }}' -- required
;
INSERT examples​
- create
- Manifest
Move an IP. Routes the IP to another service of your account, with an optional next hop (async task).
INSERT INTO ovh.ip.moves (
nexthop,
to,
ip
)
SELECT
'{{ nexthop }}',
'{{ to }}' /* required */,
'{{ ip }}'
RETURNING
task_id,
comment,
destination,
done_date,
function,
last_update,
start_date,
status
;
# Description fields are for documentation purposes
- name: moves
props:
- name: ip
value: "{{ ip }}"
description: Required parameter for the moves resource.
- name: nexthop
value: "{{ nexthop }}"
description: |
Nexthop of destination service
- name: to
value: "{{ to }}"
description: |
Service destination