Applies for an SRV address for an ApsaraDB for MongoDB instance.
Operation description
This operation applies only to replica set instances and sharded cluster instances that use cloud disks.
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 instance ID. |
dds-2ze5eb9514e31364 |
| NodeId |
string |
No |
The ID of the Mongos or shard node in a sharded cluster instance. Note
You do not need to specify this parameter. |
d-bp1b7bb3bbe**** |
| SrvConnectionType |
string |
No |
The type of the SRV address to apply for. Valid values:
Note
The default is the private SRV address. |
vpc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
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.