Queries the network information of an ApsaraDB for Tair instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeDBInstanceNetInfo |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
r-bp1zxszhcgatnx**** |
| NetType |
string |
No |
The network type. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| InstanceNetworkType |
string |
The network type. Valid values:
|
CLASSIC |
| RequestId |
string |
The request ID. |
FC77D4E1-2A7C-4F0B-A4CC-CE0B9C314B9B |
| NetInfoItems |
object |
Details about the instance's network connections. |
|
| InstanceNetInfo |
array<object> |
An array of network connection details for the instance. |
|
|
object |
The details of a network connection. |
||
| DirectConnection |
integer |
Indicates whether the address is for a direct connection. Valid values:
|
0 |
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-bp1e7clcw529l773d**** |
| DBInstanceNetType |
string |
The network type. Valid values:
|
1 |
| Upgradeable |
string |
The remaining validity period of the Classic Network connection string, in seconds. Note
A value of 0 indicates that the connection string does not expire. |
0 |
| ExpiredTime |
string |
The validity period of the Classic Network connection string, in seconds. |
5183778 |
| ConnectionString |
string |
The connection string of the instance. |
r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
| IPType |
string |
The network type of the IP address. Valid values:
|
Inner |
| VPCInstanceId |
string |
The ID of the instance associated with the VPC. |
r-bp1ky7j6qc7umk**** |
| Port |
string |
The service port of the instance. |
6379 |
| VPCId |
string |
The ID of the VPC to which the instance belongs. |
vpc-bp1nme44gek34slfc**** |
| IPAddress |
string |
The IP address. |
172.16.49.*** |
| IsSlaveProxy |
integer |
A value of 1 indicates that this network address is for a replica node in the standby zone. Note
This address is returned only when multi-zone read/write splitting is enabled for the instance. |
1 |
Examples
Success response
JSON format
{
"InstanceNetworkType": "CLASSIC",
"RequestId": "FC77D4E1-2A7C-4F0B-A4CC-CE0B9C314B9B",
"NetInfoItems": {
"InstanceNetInfo": [
{
"DirectConnection": 0,
"VSwitchId": "vsw-bp1e7clcw529l773d****",
"DBInstanceNetType": "1",
"Upgradeable": "0",
"ExpiredTime": "5183778",
"ConnectionString": "r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com",
"IPType": "Inner",
"VPCInstanceId": "r-bp1ky7j6qc7umk****",
"Port": "6379",
"VPCId": "vpc-bp1nme44gek34slfc****",
"IPAddress": "172.16.49.***",
"IsSlaveProxy": 1
}
]
}
}
Error response
JSON format
{
"RequestId":"314C4FB3-4256-424F-9AD9-1A6B3444160A",
"InstanceNetworkType":"Classic",
"NetInfoItems":{
"InstanceNetInfo":[{
"DBInstanceNetType":"1",
"Port":"6379",
"ConnectionString":"r-xxxxxxxxxxxxxxx.redis.rds.aliyuncs.com",
"VPCId":"",
"IPAddress":"xxx.xxx.xxx.xxx",
"IPType":"Inner",
"Upgradeable":"0"
}]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.