MongoDBDatabaseResource Properties

ClassProperties5 members
A resource that represents a MongoDB database. This is a child resource of a MongoDBServerResource.
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection string expression for the MongoDB database.
public ReferenceExpression ConnectionStringExpression { get; }
DatabaseNameSection titled DatabaseNamestring
Gets the database name.
public string DatabaseName { get; }
Gets the parent MongoDB container resource.
public MongoDBServerResource Parent { get; }
ResourceTypeDisplayNameSection titled ResourceTypeDisplayNameoverridestring
Gets the default human-readable name of this resource's type.
public override string ResourceTypeDisplayName { get; }
Override this property to identify the service, such as Redis or PostgreSQL Server, independently of its technical resource type. The default is the resource type. This label does not change the resource name, service discovery, or OpenTelemetry identity. Use ResourceBuilderExtensions.WithResourceTypeDisplayName to override the label for an instance.
UriExpressionSection titled UriExpressionReferenceExpression
Gets the connection URI expression for the MongoDB database.
public ReferenceExpression UriExpression { get; }
Format: mongodb://[user:password@]{host}:{port}/{database}[?authSource=admin&authMechanism=SCRAM-SHA-256]. The credential and query segments are included only when a password is configured.