addMongoDBReplicaSet

Method
📦 Aspire.Hosting.MongoDB v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addMongoDBReplicaSet(
name: string,
userName?: ParameterResource,
password?: ParameterResource): MongoDBReplicaSetResource;
}

Signature

methodaddMongoDBReplicaSetbuilder
Adds a MongoDB replica set resource to the application model.
addMongoDBReplicaSet(
name: string,
userName?: ParameterResource,
password?: ParameterResource): MongoDBReplicaSetResource
namestringThe name of the replica set resource.
userNameParameterResourceoptionalAn optional parameter resource that contains the username for authenticating to the MongoDB replica set. If not provided, a default username will be used.
passwordParameterResourceoptionalAn optional parameter resource that contains the password for authenticating to the MongoDB replica set. If not provided, a default password will be used.
MongoDBReplicaSetResource

Applies to

This method applies to the following types: