migration2018s
Creates, updates, deletes, gets or lists a migration2018s resource.
Overview​
| Name | migration2018s |
| Type | Resource |
| Id | ovh.vps.migration2018s |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
datacenter | string | All datacenter of vps migration (BHS, DE, GRA, SBG, SGP, SYD, UK, WAW) |
date | string (date-time) | Migration start date |
plans | array | List of available plans to migrate |
status | string | All status a migration task can be in (available, done, notAvailable, ongoing, planned, toPlan) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | service_name | 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) | |
create | insert | service_name, new_plan | Schedules 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.
| 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"}}) |
service_name | string | Service name (wire: serviceName) |
SELECT examples​
- get
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​
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: migration2018s
props:
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the migration2018s resource.
- name: new_plan
value: "{{ new_plan }}"
description: |
Choosen plan for migration