Skip to main content

migrations

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

Overview​

Namemigrations
TypeResource
Idovh.ovh_cloud_connect.migrations

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerMigration reference
service_idintegerServiceId reference (wire: serviceId)
product_namestringName of the migration product (wire: productName)
creation_datestring (date-time)Starting date of the migration (wire: creationDate)
done_datestring (date-time)Ending date of the migration (wire: doneDate)
statusstringMigration status (cancelled, doing, done, error, pause, problem, todo)
typestringType of migration (repricing, total)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns the migration type (repricing or total), product, status and dates.
createinsertservice_nameStarts the migration of the service to its new offer.

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_namestring (uuid)Service name (wire: serviceName)

SELECT examples​

Returns the migration type (repricing or total), product, status and dates.

SELECT
id,
service_id,
product_name,
creation_date,
done_date,
status,
type
FROM ovh.ovh_cloud_connect.migrations
WHERE service_name = '{{ service_name }}' -- required
;

INSERT examples​

Starts the migration of the service to its new offer.

INSERT INTO ovh.ovh_cloud_connect.migrations (
service_name
)
SELECT
'{{ service_name }}'
;