Create a DBaaS task to check migration

POST /dbaas-task-migration-check/{service}

Create a DBaaS task to check migration

Path parameters

  • service string Required

    Service name

    Minimum length is 0, maximum length is 63.

application/json

Body Required

  • source-service-uri string Required

    Service URI of the source MySQL or PostgreSQL database with admin credentials.

    Minimum length is 1, maximum length is 512.

  • method string

    The migration method to be used

    Values are dump or replication.

  • Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)

    Minimum length is 1, maximum length is 2048.

Responses

  • 200 application/json

    200

    Hide response attributes Show response attributes object
    • id string(uuid)

      Operation ID

    • reason string

      Operation failure reason

      Values are incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, or conflict.

    • Related resource reference

      Hide reference attributes Show reference attributes
      • id string(uuid)

        Reference ID

      • command string

        Command name

    • message string

      Operation message

    • state string

      Operation status

      Values are failure, pending, success, or timeout.

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 example
{
  "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"
}