Queries connection information of an AnalyticDB for PostgreSQL instance, including endpoints, IP addresses, and ports.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeDBInstanceNetInfo |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. Note
You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs. |
gp-0xin9q82c33xc**** |
| ConnectionString |
string |
No |
The endpoint used to connect to the instance. Note
If you do not specify this parameter, the information about all endpoints of the instance is returned. |
gp-0xin9q82c33xc****-master.gpdb.rds.aliyuncs.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
7565770E-7C45-462D-BA4A-8A5396F2CAD1 |
| DBInstanceNetInfos |
object |
||
| DBInstanceNetInfo |
array<object> |
The connection information of the instance. |
|
|
object |
|||
| VSwitchId |
string |
The vSwitch ID. Multiple IDs are separated by commas (,). |
vsw-0xi4kt4dho2kx79p1**** |
| ConnectionString |
string |
The endpoint used to connect to the instance. |
gp-0xin9q82c33xc****-master.gpdb.rds.aliyuncs.com |
| IPType |
string |
The type of the IP address.
|
Inner |
| Port |
string |
The port number. |
3432 |
| VpcInstanceId |
string |
The instance ID in a VPC. |
vpc-0xi8hbevlbj3bq0co**** |
| VPCId |
string |
The VPC ID of the instance. |
vpc-0xi8hbevlbj3bq0co**** |
| IPAddress |
string |
The IP address. |
127.0.0.1 |
| AddressType |
string |
The type of the endpoint. |
Primary |
| InstanceNetworkType |
string |
The network type of the instance. Valid values:
|
VPC |
Examples
Success response
JSON format
{
"RequestId": "7565770E-7C45-462D-BA4A-8A5396F2CAD1",
"DBInstanceNetInfos": {
"DBInstanceNetInfo": [
{
"VSwitchId": "vsw-0xi4kt4dho2kx79p1****",
"ConnectionString": "gp-0xin9q82c33xc****-master.gpdb.rds.aliyuncs.com",
"IPType": "Inner",
"Port": "3432",
"VpcInstanceId": "vpc-0xi8hbevlbj3bq0co****",
"VPCId": "vpc-0xi8hbevlbj3bq0co****",
"IPAddress": "127.0.0.1",
"AddressType": "Primary"
}
]
},
"InstanceNetworkType": "VPC"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.