MongoDBReplicaSetResource Constructors
ClassConstructors1 member
Represents a MongoDB replica set resource in the application model. A replica set is a group of MongoDB servers that maintain the same data set, providing redundancy and high availability.
Constructor(string, ParameterResource, ParameterResource?, ParameterResource)Section titled Constructor(string, ParameterResource, ParameterResource?, ParameterResource) Represents a MongoDB replica set resource in the application model. A replica set is a group of MongoDB servers that maintain the same data set, providing redundancy and high availability.
public sealed class MongoDBReplicaSetResource{ public MongoDBReplicaSetResource( string name, ParameterResource keyFile, ParameterResource? sharedUserName, ParameterResource sharedPassword) { // ... }}Parameters
namestringThe name of the resource, which is also the name of the replica set itself.keyFileParameterResourceThe content of the keyfile the members use to authenticate to each other. Required.sharedUserNameParameterResource?The user name every member authenticates with, or null to use the default user name.sharedPasswordParameterResourceThe password every member authenticates with. Required.Remarks
This resource is a logical grouping of multiple
MongoDBServerResource instances that are configured as members of the same replica set.