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
DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the RDS 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 ECSDescribeSecurityGroup to describe the ID of the security group in the target region.
AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided by Alibaba Cloud for you to access services.

Action String No ModifySecurityGroupConfiguration

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

RegionId 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


Error codes.

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