Skip to main content

migration2018s

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

Overview​

Namemigration2018s
TypeResource
Idovh.vps.migration2018s

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
datacenterstringAll datacenter of vps migration (BHS, DE, GRA, SBG, SGP, SYD, UK, WAW)
datestring (date-time)Migration start date
plansarrayList of available plans to migrate
statusstringAll status a migration task can be in (available, done, notAvailable, ongoing, planned, toPlan)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns whether the VPS 2016 or 2018 can be migrated to VPS 2020, with the plans, the datacenter, the date and the migration status. (Deprecated, will be removed)
createinsertservice_name, new_planSchedules the migration of the VPS 2016 or 2018 to VPS 2020 and returns the task that performs it. (Deprecated, will be removed)

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"}})
service_namestringService name (wire: serviceName)

SELECT examples​

Returns whether the VPS 2016 or 2018 can be migrated to VPS 2020, with the plans, the datacenter, the date and the migration status. (Deprecated, will be removed)

SELECT
datacenter,
date,
plans,
status
FROM ovh.vps.migration2018s
WHERE service_name = '{{ service_name }}' -- required
;

INSERT examples​

Schedules the migration of the VPS 2016 or 2018 to VPS 2020 and returns the task that performs it. (Deprecated, will be removed)

INSERT INTO ovh.vps.migration2018s (
new_plan,
service_name
)
SELECT
'{{ new_plan }}' /* required */,
'{{ service_name }}'
RETURNING
id,
date,
progress,
state,
type
;