You are not logged in.
MigrateAz
This API is used to migrate a DB instance to another AZ.
Name | Type | IN | Mandatory | Description |
---|---|---|---|---|
x-auth-token | string | header | Yes | Specifies the user token obtained from the IAM service. |
instance_id | string | path | Yes | Specifies the instance ID, which can be obtained by calling the API for querying instances and details. If you do not have an instance, you can call the API used for creating an instance. |
project_id | string | path | Yes | Specifies the project ID of a tenant in a region. |
Name | Type | Mandatory | Description |
---|---|---|---|
target_azs | string | Yes | Single-AZ or multi-AZ to which the VM is migrated. |
Success.
Name | Type | Description |
---|---|---|
job_id | string | Indicates the task ID. |
Client or server error.
Name | Type | Description |
---|---|---|
error_code | string | Specifies the error returned when a task submission exception occurs. |
error_msg | string | Specifies the description of the error returned when a task submission exception occurs. |
Migration to single AZ
"POST https://{endpoint}/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/9136fd2a9fcd405ea4674276ce36dae8in02/migrate"
{
"target_azs": "az1xahz"
}
Migration to multiple AZ
"POST https://{endpoint}/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/9136fd2a9fcd405ea4674276ce36dae8in02/migrate"
{
"target_azs": "az1xahz,az2xahz,az3xahz"
}
Success.
{
"job_id": "3711e2ad-5787-49bc-a47f-3f0b066af9f5"
}