Skip to main content

mysql_migration_checks

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

Overview​

Namemysql_migration_checks
TypeResource
Idovh.cloud_database.mysql_migration_checks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
resultstringMigration result message
statusstringStatus of the migration check task (done, failed, running, syncing, waiting)
successbooleanSuccess status of the migration check

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcluster_id, service_nameGet the MySQL migration check status
createinsertcluster_id, service_name, source_host, source_password, source_port, source_ssl, source_usernameCreate a new MySQL migration check

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"}})
cluster_idstring (uuid)Cluster ID (wire: clusterId)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

Get the MySQL migration check status

SELECT
result,
status,
success
FROM ovh.cloud_database.mysql_migration_checks
WHERE cluster_id = '{{ cluster_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

Create a new MySQL migration check

INSERT INTO ovh.cloud_database.mysql_migration_checks (
source_host,
source_password,
source_port,
source_ssl,
source_username,
cluster_id,
service_name
)
SELECT
'{{ source_host }}' /* required */,
'{{ source_password }}' /* required */,
{{ source_port }} /* required */,
{{ source_ssl }} /* required */,
'{{ source_username }}' /* required */,
'{{ cluster_id }}',
'{{ service_name }}'
RETURNING
result,
status,
success
;