Cmdlets for MongoDB

Build 24.0.9060

Server Parameter (Connect-MongoDB Cmdlet)

The host name or IP address of the server hosting the MongoDB database.

Syntax

Connect-MongoDB -Server string

Data Type

cstr

Default Value

"localhost"

Remarks

The host name or IP address of the server hosting the MongoDB database. If you choose to connect using DNS seed lists, set this option to "mongodb+srv://" + the name of the server your MongoDB instance is running on.

If connecting through MongoDB Atlas, set the Server connection property to the shard value of the primary cluster (ex: cluster0-shard-00-00-test.mongodb.net). More information about sharding can be found here: MongoDB Sharding.

This is a required parameter.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060