Skip to main content

moves

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

Overview​

Namemoves
TypeResource
Idovh.ip.moves

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
cloud_projectarraylist of public cloud projects (wire: cloudProject)
dedicated_cloudarraylist of dedicated clouds (wire: dedicatedCloud)
dedicated_serverarraylist of dedicated servers (wire: dedicatedServer)
hosting_resellerarraylist of hosting reseller services (wire: hostingReseller)
ip_loadbalancingarraylist of load balancing services (wire: ipLoadbalancing)
snc_cloud_platformarraylist of SNC Cloud Platform projects (wire: sncCloudPlatform)
vmware_cloud_directorarraylist of VMware Cloud Director organization services (wire: vmwareCloudDirector)
vpsarraylist of vps
vrack_services_bgparraylist of BGP vrack services services (wire: vrackServicesBgp)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectipList move destinations. Returns, per service type, the services this IP can move to and their next hops. (Beta version)
createinsertip, toMove 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.

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"}})
ipstring (ip-block)

SELECT examples​

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​

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
;