Create a DBaaS task to check migration
Create a DBaaS task to check migration
Path parameters
-
Service name
Minimum length is
0
, maximum length is63
.
Body Required
-
Service URI of the source MySQL or PostgreSQL database with admin credentials.
Minimum length is
1
, maximum length is512
. -
method string
The migration method to be used
Values are
dump
orreplication
. -
ignore-dbs string
Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)
Minimum length is
1
, maximum length is2048
.
POST /dbaas-task-migration-check/{service}
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/dbaas-task-migration-check/{service} \
-H "Content-Type: application/json" \
-d '{"source-service-uri":"string","method":"dump","ignore-dbs":"string"}'
Request examples
{
"source-service-uri": "string",
"method": "dump",
"ignore-dbs": "string"
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}