描述
查看執行個體的傳統網路訪問地址。
請求參數
名稱 | 類型 | 是否必須 | 描述 |
---|---|---|---|
<公用請求參數> | - | - | 參見公用請求參數。 |
Action | String | 是 | 系統規定參數,取值:DescribeDBInstanceNetInfo。 |
InstanceId | String | 是 | 執行個體 ID,全域唯一。 |
返回參數
名稱 | 類型 | 描述 |
---|---|---|
<公用返回參數> | - | 參見公用返回參數。 |
NetInfoItems | List | 由 InstanceNetInfo 組成的執行個體串連資訊。 |
InstanceNetworkType | String | 執行個體的網路類型。
|
名稱 | 類型 | 描述 |
---|---|---|
ConnectionString | String | DNS 串連串 |
IPAddress | String | IP 位址 |
IPType | String | IP 網路類型:
|
Port | String | 連接埠資訊 |
VPCId | String | VPC ID |
VSwitchId | String | 交換器 ID |
ExpiredTime | String | 到期時間,即剩餘有效時間,以秒為單位。 |
樣本
請求樣本
https://r-kvstore.aliyuncs.com.com/
?<公用請求參數>
&Action= DescribeDBInstanceNetInfo
&InstanceId=657e361a074646d5
返回樣本
{
"RequestId": "47651832-5882-4E35-BABF-97D01E06EB12",
"InstanceNetworkType": "VPC",
"NetInfoItems": {
"InstanceNetInfo": [{
"ConnectionString": "r-m5e6a11fb9fd3414.redis.rds.aliyuncs.com",
"Port": "6379",
"DBInstanceNetType": "Inner",
"VPCId": "",
"IPAddress": "10.146.182.164",
"ExpiredTime": "2581948"
}, {
"ConnectionString": "r-m5e6a11fb9fd3414983.redis.rds.aliyuncs.com",
"Port": "6379",
"DBInstanceNetType": "Private",
"VPCId": "vpc-m5edrscsrbmda2m46h4c7",
"IPAddress": "192.168.100.29",
}]
}
}
}