ModifySrvNetworkAddress
Modifies the SRV endpoint of a MongoDB instance.
Operation description
Applicable only to cloud disk replica set instances and cloud disk sharded cluster instances. Before calling this operation, ensure that an SRV address is assigned to the target instance. For newly created instances, call AllocateDBInstanceSrvNetworkAddress first to assign an SRV address. Also, ensure that the instance is in the Running state. You can verify this by checking the DBInstanceStatus field returned by DescribeDBInstanceAttribute.
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 endpoint. The endpoint must meet the following requirements:
Note
Specify only the prefix of the endpoint. The remaining part cannot be modified. |
aliyuntest111 |
| ConnectionType |
string |
Yes |
The type of the SRV endpoint to be modified. Valid values:
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.