全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

迁移可用区

最近更新时间:2021-10-19 16:38:21

ModifyDBInstanceAvailabilityZone 迁移备库可用区

支持高可用实例(不包含高可用云盘版),单实例版本。
注意:迁移备库,备库可用区位置不可相同。

请求方式

GET

请求参数

英文名称 中文名称 类型 是否必须 备注
Action 调用接口名称 String 取固定值:ModifyDBInstanceAvailabilityZone
Version API版本号 String 取固定值:2016-07-01
DBInstanceIdentifier 实例Id String
AvailabilityZone.1 主可用区 String 主所在可用区不可变
AvailabilityZone.2 备可用区 String 修改备的可用区

返回值

英文名称 中文名称 类型 备注
RequestId 请求ID String
Data.DBInstance 实例列表 List 返回实例详细信息

请求示例

http://krds.{{region}}.api.ksyun.com/?Action=ModifyDBInstanceAvailabilityZone&DBInstanceIdentifier=6a5309d0-b754-4d2c-8e1c-39c022766c77&AvailabilityZone.1=cn-beijing-6a&AvailabilityZone.2=cn-beijing-6b

示例返回

{
    "Data": {
        "DBInstance": {
            "DBInstanceClass": {
                "Id": "RDSOpenAPI_a691003b190faf1e",
                "Iops": 1200,
                "Vcpus": 1,
                "Disk": 10,
                "Ram": 1,
                "Mem": 1,
                "MaxConn": 200
            },
            "DBInstanceIdentifier": "6a5309d0-b754-4d2c-8e1c-39c022766c77",
            "DBInstanceName": "KingSoft_Test",
            "DBInstanceStatus": "RUNNING_TASK",
            "DBInstanceType": "HRDS",
            "DBParameterGroupId": "0cc4fe60-52fa-4f57-a7a1-053bbad52c3e",
            "PreferredBackupTime": "00:00-01:00",
            "GroupId": "9a2889f0-110b-458b-b751-c46c81fd85fe",
            "Vip": "10.0.1.52",
            "Port": 3306,
            "Engine": "mysql",
            "EngineVersion": "5.7",
            "InstanceCreateTime": "2021-08-02T15:10:38+0800",
            "MasterUserName": "admin",
            "DatastoreVersionId": "771a9409-56ae-4b55-87b4-e087a4a59437",
            "VpcId": "6ae1b03b-182c-41ea-bba2-d8157fea129d",
            "SubnetId": "782249ad-da15-4f81-99e4-708842bdd85d",
            "PubliclyAccessible": true,
            "BillType": "DAY",
            "OrderType": "REGULAR",
            "MultiAvailabilityZone": true,
            "MasterAvailabilityZone": "cn-beijing-6a",
            "SlaveAvailabilityZone": "cn-beijing-6c",
            "AvailabilityZoneList": [
                {
                    "MemberType": "master",
                    "AzCode": "cn-beijing-6a"
                },
                {
                    "MemberType": "standby",
                    "AzCode": "cn-beijing-6c"
                }
            ],
            "DiskUsed": 0.35742188,
            "InnerAzCode": "cn-beijing-6a",
            "Audit": false,
            "ReadReplicaDBInstanceIdentifiers": [],
            "ProductId": "1fb3030a-7332-4253-a126-4cc05eec7889",
            "ProductWhat": 1,
            "ProjectId": 0,
            "ProjectName": "默认项目",
            "Region": "cn-beijing-6",
            "ServiceStartTime": "2021-08-02T15:10:38+0800",
            "SubOrderId": "HRDS2S21080215043153210BVRN",
            "SecurityGroups": [],
            "SupportIPV6": false,
            "BillTypeId": 5
        }
    },
    "RequestId": "4a879965-a263-44d7-9e0b-f41eac21ad57"
}
文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈