最近更新时间:2021-10-14 10:42:04
切换数据库实例主备
英文名称 | 中文名称 | 类型 | 是否必须 | 备注 |
---|---|---|---|---|
Action | 调用接口名称 | String | 是 | 取固定值:SwitchDBInstanceHA |
Version | API版本号 | String | 是 | 取固定值:2016-07-01 |
DBInstanceIdentifier | 实例Id | String | 是 |
英文名称 | 中文名称 | 类型 | 备注 |
---|---|---|---|
RequestId | 请求ID | String | – |
https://krds.api.ksyun.com/?Action=SwitchDBInstanceHA&Version=2016-07-01&DBInstanceIdentifier=4d97f65f-5603-4373-b870-48a280ecc464
{
"Data": {
"DBInstance": {
"DBInstanceClass": {
"Id": "RDSOpenAPI_43e19b9291d6b519",
"Iops": 1200,
"Vcpus": 1,
"Disk": 5,
"Ram": 1,
"Mem": 1,
"MaxConn": 200
},
"DBInstanceIdentifier": "af82c47e-d1e9-4e8e-91dd-951d535b3209",
"DBInstanceName": "zhebing_8",
"DBInstanceStatus": "RUNNING_TASK",
"DBInstanceType": "HRDS",
"DBParameterGroupId": "d401a14a-9048-466d-a3a3-a47aa97c324f",
"PreferredBackupTime": "00:00-01:00",
"GroupId": "b91a58d0-2400-483e-8a70-a6e442cc5531",
"Vip": "10.0.1.7",
"Port": 3306,
"Engine": "mysql",
"EngineVersion": "8.0",
"InstanceCreateTime": "2021-08-31T11:16:52+0800",
"MasterUserName": "admin",
"DatastoreVersionId": "9699c2fc-ea14-4de4-9d75-bf81023c86f1",
"VpcId": "530b5d42-1c88-4ea0-adad-1993c9902751",
"SubnetId": "953b854b-099c-41dd-9f4f-18f31ccb3936",
"PubliclyAccessible": true,
"BillType": "DAY",
"OrderType": "REGULAR",
"MultiAvailabilityZone": false,
"MasterAvailabilityZone": "cn-beijing-6a",
"SlaveAvailabilityZone": "cn-beijing-6a",
"AvailabilityZoneList": [
{
"MemberType": "master",
"AzCode": "cn-beijing-6a"
},
{
"MemberType": "standby",
"AzCode": "cn-beijing-6a"
}
],
"DiskUsed": 3.1044922,
"InnerAzCode": "cn-beijing-6a",
"Audit": true,
"ReadReplicaDBInstanceIdentifiers": [],
"ProductId": "a6b58ad8-0177-492d-b9e6-a47d1a95552c",
"ProductWhat": 1,
"ProjectId": 0,
"ProjectName": "默认项目",
"Region": "cn-beijing-6",
"ServiceStartTime": "2021-08-31T11:16:52+0800",
"SubOrderId": "HRDS2S2108311108439001C1X4A",
"SecurityGroups": [],
"SupportIPV6": false,
"BillTypeId": 5
}
},
"RequestId": "FE870d03b0-0fbf-11ec-b3bf-c9addefb69e2"
}
纯净模式