百度智能云

All Product Document

          Cloud Database MONGODB

          Whitelist Management

          Overview

          With the cloud Database MongoDB, you can set the IP source that allows you to access the instance using a whitelist, with the format IP and CIDR supported (IP address range). To ensure data security, the whitelist is null by default after you create the cloud database MongoDB instance, indicating access to the instance from an external device is not allowed.

          Descriptions:

          • You need to set a whitelist for the instance before you use the target instance for the first time. After you add a whitelist, the Basic information page of the instance can show the instance connection information.
          • The upper limit for the number of whitelists added or deleted once is 50.

          Add a Whitelist

          1. Log in to MongoDB Management Console.
          2. In the left corner of the console page, select the region where the instance resides, and then enter the “DocDB for MongoDB” page.
          3. In the left navbar, click the replica cluster instance list or sharded cluster instance list.
          4. Find the target instance, and click Instance Name to enter the Instance Details page.
          5. Click the Whitelist on the left navbar, so that you can see the “Whitelist” list.
          6. Click Add IP Address to enter the whitelist you want to add in the popup dialog box. Click OK to complete the addition.

          c4c04e8d7ae678fd9a2842bb535b4f33.png

          Descriptions:

          • Separate IP addresses with commas without repetition. The format is as follows: 192.168.0.1(Ip)and(IP)and 10.11.12.13/24 (CIDR mode, i.e., classless inter-domain routing, /24 indicates the length of a prefix in an IP address, which is within the range of 1~32 bits).
          • 0.0.0.0/0 represents that the database will be at high risk if there is not limitation on the IP access setting. It is recommended that you set an IP or IP address range of your application server to the access privilege.

          Delete a Whitelist

          1. Log into the MongoDB Management Console.
          2. In the left corner of the console page, select the region where the instance resides, and then enter the “DocDB for MongoDB”page.
          3. In the left navbar, click the replica cluster instance list or shard cluster instance list.
          4. Find the target instance, and click Instance Name to enter the Instance Details page.
          5. Click the Whitelist on the left navbar, so that you can see the “Whitelist” list.
          6. After selecting the whitelist you want to delete, click Delete to remove it successfully.

          fe4e4af0c1f19eccee54c96e40196f4c.png

          Relevant APIs

          Previous
          Data Restoration
          Next
          Instance Management