To add a remote repository to your Data Repositories view:
- From the Data Repositories view, click the Add Server icon.
- Choose one of the following modes from the Connection Mode menu and configure the connection details accordingly:
- Host/Port: Enter the Data Repository Server's host and port. To use SSL to connect to the server, enable Use SSL.
Connection String: Enter the MongoDB connection string. An example of a connection string that connects to a local server with SSL is shown below. See https://www.mongodb.com/docs/manual/reference/connection-string/ for more information about MongoDB connection strings.
Code Block title MongoDB Connection String Example mongodb://localhost:2424/?tls=true&tlsAllowInvalidHostnames=true
Info If an authentication database is specified in the connection string, you should use the
/defaultauthdb
component; only use the?authsource=defaultauthdb
option if credentials are specified in the connection string.
Enter the username and password to be used to log into your Data Repository Server.
If you chose Connection String as your connection mode, you have the option to specify credentials in either the connection string or in the Username and Password fields. If credentials are specified in both, those in the Username and Password fields will take precedence.
(Optional) If you want to be able to lock and unlock repositories (as described in Locking and Unlocking Repositories in CTP), enable Configure authentication for locking, then specify the URL of the CTP server that you use (for example,
http://ctpserver:8080
), as well as your username and password for that CTP server.- If you have configured CTP to accept OpenID Connect for authentication, a statement to that effect will appear instead of username and password fields.
- Click OK.
The specified data repository server will be added to the Data Repositories view. Any repositories that it contains will be displayed in this tree. New repositories can be added as described below, or during the process of creating a virtual asset from the "create parameterized messages from traffic wizard.
Info | ||||
---|---|---|---|---|
| ||||
If you later want to remove a server from the Data Repositories view, just select the related node and click Remove Server. |