最近更新时间:2021-10-19 16:38:21
支持高可用实例(不包含高可用云盘版),单实例版本。
注意:迁移备库,备库可用区位置不可相同。
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"
}
纯净模式