Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

MongoDBReplicaSetResource Properties

ClassProperties6 members
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.
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the combined connection string for the MongoDB replica set, which includes the endpoints of all members, interpretable by the MongoDB driver.
public ReferenceExpression ConnectionStringExpression { get; }
Gets the MongoDB server resources that are members of this replica set, in the order they were added.
public IEnumerable<MongoDBServerResource> Members { get; }
SharedKeyFileParameterSection titled SharedKeyFileParameterParameterResource
Gets the parameter that contains the content of the key file used for internal authentication between members of the MongoDB replica set.
public ParameterResource SharedKeyFileParameter { get; }
SharedPasswordParameterSection titled SharedPasswordParameterParameterResource
Gets the parameter that contains the password for authenticating to the MongoDB replica set.
public ParameterResource SharedPasswordParameter { get; }
This will be the same across all members of the replica set, and is used in conjunction with MongoDBReplicaSetResource.SharedUserNameParameter for authentication.
SharedUserNameParameterSection titled SharedUserNameParameternullableParameterResource?
Gets the parameter that contains the username for authenticating to the MongoDB replica set.
public ParameterResource? SharedUserNameParameter { get; }
This will be the same across all members of the replica set, and is used in conjunction with MongoDBReplicaSetResource.SharedPasswordParameter for authentication.
SharedUserNameReferenceSection titled SharedUserNameReferenceReferenceExpression
Gets a reference to the username for the MongoDB replica set.
public ReferenceExpression SharedUserNameReference { get; }