- Documentation
Document Database for MongoDB
Quick start
Setting allowlist
Quick start
Setting allowlist
Setting allowlist
After the Document Database for MongoDB instance is created successfully, you can set allowlist for the instance to allow devices to access the instance. This topic describes how to set allowlist via the console.
Background information
To ensure the security and stability of the MongoDB database, accessing MongoDB instances from any IP address is not allowed by default in the system. Before using MongoDB instances, you need to create an allowlist and add the client's IP address or CIDR block to the allowlist of the MongoDB instance to allow the client to access the MongoDB instance. We recommend that you regularly maintain and manage the allowlist to ensure the security of accessing MongoDB instances.
Limits
Associate allowlist during instance creation
You can associate MongoDB instances with allowlists during instance creation, so that clients in the allowlist can access the instance. For specific procedures, refer to Creating instance. Associate allowlist to existing instance
- In the upper-left corner of the top menu bar, select the project and region for instance.
- Select either Replica set instances or Sharding instances in the left navigation bar depending on the instance type.
- On the target instance type list page, click the target instance name.
- On the instance details page, click the Security tab.
- Under the Allowlist sub-tab, click Associate allowlist.
- In the pop-up control panel, first confirm the Instance name and Project information, then complete the subsequent operations based on the selected association mode.
- If you select Existing allowlist, that is, associate an existing allowlist to the current instance, you need to:
- In the Existing allowlist list, select the allowlists to be associated.
- If you select New allowlist, that is, create a new allowlist and automatically associate it to the current instance, you need to:
- Select the project to be added to the allowlist from the Affiliated project drop-down list. By default, the default project will be added.
- Enter a new allowlist name, description (optional), and IP address.
tip
- For more information on configuring the name, description, and IP address when creating an allowlist, refer to Creating allowlist.
- If you use the MongoDB cloud service through IAM user, you can only see the allowlist information under the projects that have been authorized for the current IAM user. For more details, refer to Using MongoDB with IAM users.
Relevant APIs
Last updated: 2026.01.29 19:23:22