Mengajukan string koneksi SRV untuk instans Database Apsara for MongoDB.
Deskripsi operasi
Applicable only to cloud disk-based replica set and sharded cluster instances.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:AllocateDBInstanceSrvNetworkAddress |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. |
dds-2ze5eb9514e31364 |
| NodeId |
string |
No |
ID node Mongos (Proxy Layanan) atau shard dalam instans kluster sharded. Catatan
Parameter ini saat ini tidak diperlukan. |
d-bp1b7bb3bbe**** |
| SrvConnectionType |
string |
No |
Tipe string koneksi SRV yang akan diaktifkan. Nilai valid:
Catatan
Nilai default: vpc. |
vpc |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
6B82A9EF-9961-5A31-A19F-009B7098ACCA |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6B82A9EF-9961-5A31-A19F-009B7098ACCA"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAccountName.Forbid | Specified account name is a keyword. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.