You can call this operation to modify the ECS Security group that is bound to the ApsaraDB for MongoDB instance.

Note For a sharded cluster instance, the ECS Security Group applies only to Mongos.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No ModifySecurityGroupConfiguration

The operation that you want to perform. Set the value to ModifySecurityGroupConfiguration.

DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

SecurityGroupId String Yes sg-bpxxxxxxxx

The ID of the ECS security group.

  • Each ApsaraDB for MongoDB instance can be added in up to 10 security group.
  • You can call the ECS DescribeSecurityGroup to describe the ID of the security group in the target region.
Region ID String No cn-hangzhou

The ID of the region where the resource group resides.

Response parameters

Parameter Type Example Description
RequestId String E062C482-1 A4 B- 469E-938C-96D28CFAE42E

The ID of the request.


Sample requests

http(s):// Action=ModifySecurityGroupConfiguration
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "E062C482-1A4B-469E-938C-96D28CFAE42E"

Error codes

For a list of error codes, visit the API Error Center.