Modifies the SRV connection address of a MongoDB instance.
Operation description
This operation applies only to replica set instances and sharded cluster instances that use disks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifySrvNetworkAddress |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bp1fd530f271**** |
| NewConnectionString |
string |
Yes |
The new connection address. The address must meet the following requirements:
Note
You only need to specify the prefix of the connection address. The rest of the address cannot be modified. |
aliyuntest111 |
| ConnectionType |
string |
Yes |
The type of the SRV connection address to modify. Valid values:
|
VPC |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
45D2B592-DEBA-4347-BBF3-xxxxxC97DBBC |
Examples
Success response
JSON format
{
"RequestId": "45D2B592-DEBA-4347-BBF3-xxxxxC97DBBC"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NewConnectionString.NotSupport | Specified newConnectionString is not supported. | newConnectionString format |
| 400 | MissingParameter | currentConnectionString is mandatory for this action. | |
| 400 | InvalidConnectionStringOrPort.Duplicate | Specified connection string or port already exists. | The specified connection string or port information already exists, please check and resubmit. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.