You can call this operation to modify the IP address whitelist of the MongoDB instance.


OpenAPI Explorer simplifies API usage. You can use OpenAPI Explorer to perform debugging operations, such as retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifySecurityIps

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

SecurityIps String Yes,

The IP addresses in an IP address whitelist. Separate multiple IP addresses with commas (,). You can add a maximum of 1,000 different IP addresses to a whitelist. You can add IP addresses in the following formats:

  • Standard IP address format, such as
  • Classless Inter-Domain Routing (CIDR) blocks, such as, where 24 indicates the prefix of the CIDR block is 24-bit. You can replace 24 with a value ranging from 1 to 32.
DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

ModifyMode String No Append

The method of modification. Valid values:

  • Cover: overwrites the whitelist.
  • Append: appends data to the whitelist.
  • Delete: deletes the whitelist.

The default value is Cover.

SecurityIpGroupName String No allowserver

The name of the IP address whitelist to be modified. The default value is default.

SecurityIpGroupAttribute String No test

The attributes of an IP address whitelist. It can contain a maximum of 120 characters in length and can contain uppercase letters, lowercase letters, and digits.

This value is empty by default.

AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Response parameters

Parameter Type Example Description
RequestId String 61B05CCF-EBAB-4BF3-BA67-D77256A721E2

The ID of the request.


Sample requests

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

Successful response examples

XML format


JSON format


Error codes

View error codes