Skip to main content

migration2020s

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

Overview​

Namemigration2020s
TypeResource
Idovh.vps.migration2020s

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
available_plansarrayList of available plans to migrate (wire: availablePlans)
current_planstringVPS current plan code (wire: currentPlan)
datestring (date-time)Date of planned migration, null if not scheduled
positionintegerPosition on the migration queue, null if not in queue
statusstringAll status a migration task can be in (available, done, notAvailable, ongoing, planned, toPlan)
target_planstringVPS target plan code after migration (wire: targetPlan)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the state of the migration of the VPS 2020 to VPS 2025, with the current and target plans, the available plans, the position in the queue and the date.
createinsertservice_name, planQueues the VPS 2020 for migration to VPS 2025 with the given target plan and returns the migration state.
updateupdateservice_nameUpdates the target plan of the pending migration of the VPS 2020 to VPS 2025 and returns the migration state.
deletedeleteservice_nameCancels the pending migration request of the VPS 2020 to VPS 2025.

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 the state of the migration of the VPS 2020 to VPS 2025, with the current and target plans, the available plans, the position in the queue and the date.

SELECT
available_plans,
current_plan,
date,
position,
status,
target_plan
FROM ovh.vps.migration2020s
WHERE service_name = '{{ service_name }}' -- required
;

INSERT examples​

Queues the VPS 2020 for migration to VPS 2025 with the given target plan and returns the migration state.

INSERT INTO ovh.vps.migration2020s (
plan,
service_name
)
SELECT
'{{ plan }}' /* required */,
'{{ service_name }}'
RETURNING
available_plans,
current_plan,
date,
position,
status,
target_plan
;

UPDATE examples​

Updates the target plan of the pending migration of the VPS 2020 to VPS 2025 and returns the migration state.

UPDATE ovh.vps.migration2020s
SET
date = '{{ date }}'
WHERE
service_name = '{{ service_name }}' --required
RETURNING
available_plans,
current_plan,
date,
position,
status,
target_plan;

DELETE examples​

Cancels the pending migration request of the VPS 2020 to VPS 2025.

DELETE FROM ovh.vps.migration2020s
WHERE service_name = '{{ service_name }}' --required
;