You can call this operation to modify an ECS Security group that is bound to an ApsaraDB for MongoDB instance.
Note For a sharded cluster instance, the bound ECS security group takes effect only for
mongos nodes.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | 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. Note
|
RegionId | String | No | cn-hangzhou |
The region ID of the instance. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | E062C482-1A4B-469E-938C-96D28CFAE42E |
The ID of the request. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/? Action=ModifySecurityGroupConfiguration
&DBInstanceId=dds-bpxxxxxxxx
&SecurityGroupId=sg-bpxxxxxxxx
&<Common request parameters>
Sample success responses
XML
format
<RequestId>E062C482-1A4B-469E-938C-96D28CFAE42E</RequestId>
JSON
format
{
"RequestId": "E062C482-1A4B-469E-938C-96D28CFAE42E"
}
Error codes
For a list of error codes, visit the API Error Center.