Data Management Service (DMS) can manage relational databases, such as MySQL, SQL
Server, PostgreSQL, Oracle, MongoDB, and OceanBase, and NoSQL databases, such as MongoDB.
DMS is an integrated data management service that offers data management, schema management,
R&D, user management, permission management, and access control. You can use DMS to
connect to a standalone ApsaraDB for MongoDB instance for easy management.
Background information
DMS provides the following roles:
- DMS administrator: DMS administrators can use all system management features except
for data protection.
Note Only DMS administrators can manage users and the IP address whitelist.
If you assume the role of DMS administrator, you can register your ApsaraDB for MongoDB
instance to DMS for management. For more information, see the Register an ApsaraDB for MongoDB instance to DMS section.
- Security administrator: Security administrators can manage operations logs and use
the data protection feature.
Note Only security administrators can use the data protection feature.
- Database administrator (DBA): DBAs can manage instances, tasks, security rules, and
configurations, and design the schema.
- Common user: Common users cannot use the system management features.
If you assume the role of common user, you must first obtain the permission to manage
your ApsaraDB for MongoDB instance. For more information, see the Apply for permissions section.
Prerequisites
The IP addresses of DMS servers are added to the whitelist of the ApsaraDB for MongoDB
instance. For more information, see
Configure a whitelist for a standalone ApsaraDB for MongoDB instance.
Note Skip this step if you have added the IP addresses of DMS servers to the whitelist
of the ApsaraDB for MongoDB instance.
Table 1. IP addresses of DMS servers
Network type of the ApsaraDB for MongoDB instance |
IP address of a DMS server |
Virtual Private Cloud (VPC) |
100.104.0.0/16 |
Classic network |
120.55.177.0/24
121.43.18.0/24
101.37.74.0/24
10.153.176.0/24
10.137.42.0/24
11.193.54.0/24
|
Register an ApsaraDB for MongoDB instance to DMS
The following example shows how to register an ApsaraDB for MongoDB instance to DMS.
Note The ApsaraDB for MongoDB instance must be registered by a DMS administrator.
- Log on to the DMS console.
- Move the pointer over the plus sign (+) in the upper-left corner and select Add instance. The Add instance dialog box appears.
- In the Add instance dialog box that appears, click the Cloud tab.
- On the Cloud tab, select MongoDB.
- In the Basic Information/Advanced information step, set relevant parameters. The following table describes the parameters.
Section |
Parameter |
Description |
Basic Information |
Database Source |
The category of the data source. In this example, set this parameter to Cloud.
|
Database type |
The type of the ApsaraDB instance to be registered. In this example, select MongoDB from the drop-down list.
|
Instance Area |
The region where the ApsaraDB for MongoDB instance resides. |
Entry mode |
The mode of registering the ApsaraDB for MongoDB instance. Valid values: Instance
ID and Connection string address.
|
Connection string address |
The connection string address of the ApsaraDB for MongoDB instance. |
Database account |
The username that you use to log on to the ApsaraDB for MongoDB instance. |
Database password |
The password that you use to log on to the ApsaraDB for MongoDB instance. |
Control Mode |
The control mode that you use to manage the ApsaraDB for MongoDB instance in DMS.
For more information, see Control modes.
|
Advanced information |
Environment type |
The type of environment where the ApsaraDB for MongoDB instance is deployed. |
Instance Name |
The name that you specify for the ApsaraDB for MongoDB instance in DMS. |
DBA |
The DBA of the ApsaraDB for MongoDB instance who is allowed to grant permissions to
users.
|
query timeout(s) |
The timeout interval of the statement that is used to query data. When the specified
time interval is reached, the target statement executed in the SQL editor is stopped
to protect the database security.
|
export timeout(s) |
The timeout interval of the statement that is used to export statistics. When the
specified time interval is reached, the target statement executed in the SQL editor
is stopped to protect the database security.
|
- In the Basic Information section, click Test connection in the lower-left corner. Wait until the connectivity test is passed.
Note If the test fails, check the parameter values that you specify.
- Click Submit.
Apply for permissions
For more information, see the Apply for permissions topic in Permission management.