ObjectRocket
To connect to ObjectRocket, you authenticate with the credentials for a database user. You can obtain the necessary connection properties from the control panel: On the Instances page, select your instance and then select the Connect menu to display a MongoDB connection string.
Prerequisites
In addition to adding a user for your database, you also need to allow access to the IP address for the machine the adapter is connecting from. You can configure this by selecting your instance on the Instances page and then clicking Add ACL.
Authenticating with a MongoDB User
Below is an example connection string providing the credentials for a MongoDB user:
mongodb://YOUR_USERNAME:YOUR_PASSWORD@abc123-d4-0.mongo.objectrocket.com:52826,abc123-d4-2.mongo.objectrocket.com:52826,abc123-d4-1.mongo.objectrocket.com:52826/YOUR_DATABASE_NAME?replicaSet=89c04c5db2cf403097d8f2e8ca871a1c
Below are the corresponding adapter connection properties:
• Server: Set this to the first server in the replica set. Click Replica Set to obtain the server names. Or, you can specify another primary or secondary server here (the adapter will query the servers in Server and ReplicaSet to find the primary).
abc123-d4-0.mongo.objectrocket.com
• Port: Set this to the port the server is running on (27017 is the default).
• ReplicaSet: Set this to the other servers in the replica set. Server and ReplicaSet together specify all instances in the MongoDB replica set. Below is an example value:
abc123-d4-2.mongo.objectrocket.com:52826,abc123-d4-1.mongo.objectrocket.com:52826
• Database: Set this to the database you want to read from and write to. Note that this is also the authentication database for the user you are connecting with; database users cannot interact with other databases outside their database in ObjectRocket.
• User: Set this to the username of a MongoDB user you defined for the Database.
• Password: Set this to the password for the database user.
UseSSL: Set this to true to enable TLS/SSL.