Applies for an SRV connection string for an ApsaraDB for MongoDB instance.
Operation description
Applicable only to cloud disk-based replica set and sharded cluster instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:AllocateDBInstanceSrvNetworkAddress |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The ID of the instance. |
dds-2ze5eb9514e31364 |
| NodeId |
string |
No |
The ID of a mongos or shard node in a sharded cluster instance. Note
This parameter is not currently required. |
d-bp1b7bb3bbe**** |
| SrvConnectionType |
string |
No |
The type of SRV connection string to enable.
Note
The default is the VPC connection string. |
vpc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
6B82A9EF-9961-5A31-A19F-009B7098ACCA |
Examples
Success response
JSON format
{
"RequestId": "6B82A9EF-9961-5A31-A19F-009B7098ACCA"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAccountName.Forbid | Specified account name is a keyword. | The username is invalid. Forbidden keywords cannot be used for a username. Modify the username. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.