Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
createLink
On this page
Creates a named connection link to a MongoDB® instance for use in data ingest.
Syntax
db.runCommand({createLink: <string>,uri: <string>,})
|
Option |
Type |
Description |
|---|---|---|
|
|
String |
Specifies the name of the link. |
|
|
String |
The URI for the remote MongoDB® instance, in |
Example
The following example defines a link named lnkExample:
db.runCommand({createLink: "lnkExample",uri: "mongodb://admin:pa55w0rd@svchost:27017",});
Last modified: