Mengambil informasi koneksi untuk instans kluster sharded MongoDB.
Deskripsi operasi
This API is for sharded cluster instances only.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeShardingNetworkAddress |
get |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. |
dds-bpxxxxxxxx |
| NodeId |
string |
No |
ID node Mongos (Proxy Layanan), shard, atau Configserver dalam instans kluster sharded. Catatan
Anda dapat memanggil operasi DescribeDBInstanceAttribute untuk mengkueri ID node Mongos (Proxy Layanan), shard, dan Configserver. |
d-bpxxxxxxxx |
| NetworkType |
string |
No |
Jenis jaringan. Nilai valid:
|
VPC |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| CompatibleConnections |
object |
||
| CompatibleConnection |
array<object> |
Connection details for instances compatible with the DynamoDB protocol. |
|
|
object |
|||
| VswitchId |
string |
The ID of the vSwitch in the VPC. Catatan
This parameter is returned when the network type is VPC. |
vsw-bpxxxxxxxx |
| ExpiredTime |
string |
The remaining validity period of the classic network endpoint, in seconds. |
2591963 |
| NetworkType |
string |
The network type.
|
VPC |
| Port |
string |
The connection port. |
3717 |
| NetworkAddress |
string |
The endpoint. |
dds-bpxxxxxxxxxxxxxx.mongodb.rds.aliyuncs.com |
| VPCId |
string |
The ID of the VPC. Catatan
This parameter is returned when the network type is VPC. |
vpc-bpxxxxxxxx |
| IPAddress |
string |
The IP address. |
10.140.xxx.xx |
| RequestId |
string |
The request ID. |
18D8AAFD-6BEB-420F-8164-810CB0C0AA39 |
| NetworkAddresses |
object |
||
| NetworkAddress |
array<object> |
Connection details for instances that use the MongoDB protocol. |
|
|
object |
|||
| NodeType |
string |
The node type. Valid values:
|
mongos |
| VswitchId |
string |
The ID of the vSwitch in the VPC. Catatan
This parameter is returned when the network type is VPC. |
vsw-bpxxxxxxxx |
| ExpiredTime |
string |
The remaining validity period of the classic network endpoint, in seconds. |
2591963 |
| NetworkType |
string |
The network type.
|
VPC |
| Role |
string |
The node role. Valid values:
|
Primary |
| Port |
string |
The connection port. |
3717 |
| VPCId |
string |
The ID of the VPC. Catatan
This parameter is returned when the network type is VPC. |
vpc-bpxxxxxxxx |
| NetworkAddress |
string |
The endpoint string. |
s-bpxxxxxxxx.mongodb.rds.aliyuncs.com |
| NodeId |
string |
The ID of the Mongos node. |
s-bpxxxxxxxx |
| IPAddress |
string |
The IP address. |
10.140.xxx.xx |
| ConnectionType |
string |
The type of the public endpoint. Valid values:
|
SRV |
| TxtRecord |
string |
The TXT record. It stores MongoDB metadata, such as version information and configuration parameters. You can use it with SRV records to implement features such as service discovery and configuration delivery. |
mongo.example.com. IN TXT "config=replicaSet=myReplicaSet" |
| ConnectionStringSuffix |
string |
The suffix of the connection string. |
.mongodb.rds.aliyuncs.com |
Contoh
Respons sukses
JSONformat
{
"CompatibleConnections": {
"CompatibleConnection": [
{
"VswitchId": "vsw-bpxxxxxxxx",
"ExpiredTime": "2591963",
"NetworkType": "VPC",
"Port": "3717",
"NetworkAddress": "dds-bpxxxxxxxxxxxxxx.mongodb.rds.aliyuncs.com",
"VPCId": "vpc-bpxxxxxxxx",
"IPAddress": "10.140.xxx.xx"
}
]
},
"RequestId": "18D8AAFD-6BEB-420F-8164-810CB0C0AA39",
"NetworkAddresses": {
"NetworkAddress": [
{
"NodeType": "mongos",
"VswitchId": "vsw-bpxxxxxxxx",
"ExpiredTime": "2591963",
"NetworkType": "VPC",
"Role": "Primary",
"Port": "3717",
"VPCId": "vpc-bpxxxxxxxx",
"NetworkAddress": "s-bpxxxxxxxx.mongodb.rds.aliyuncs.com",
"NodeId": "s-bpxxxxxxxx",
"IPAddress": "10.140.xxx.xx",
"ConnectionType": "SRV",
"TxtRecord": "mongo.example.com. IN TXT \"config=replicaSet=myReplicaSet\""
}
]
},
"ConnectionStringSuffix": ".mongodb.rds.aliyuncs.com"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.