Gets the primary endpoint for the MongoDB server.
public EndpointReference PrimaryEndpoint { get; }API references are intentionally omitted from this search. To find API references, please search these dedicated API pages instead:
public ReferenceExpression ConnectionStringExpression { get; }public IReadOnlyDictionary<string, string> Databases { get; }public EndpointReferenceExpression Host { get; }public ParameterResource? PasswordParameter { get; }public EndpointReferenceExpression Port { get; }public EndpointReference PrimaryEndpoint { get; }null if it is not part of a replica set. public string? ReplicaSetName { get; }public bool TlsEnabled { get; }Remarks
EndpointAnnotation.TlsEnabled on the MongoDBServerResource.PrimaryEndpoint, which is turned on when an HTTPS/TLS certificate is determined to be available for the resource. It is resolved lazily so that it stays correct even when TLS is enabled later in the application lifecycle (during BeforeStartEvent). public ReferenceExpression UriExpression { get; }Remarks
mongodb://[user:password@]{host}:{port}[?authSource=admin&authMechanism=SCRAM-SHA-256]. The credential and query segments are included only when a password is configured. public ParameterResource? UserNameParameter { get; }public ReferenceExpression UserNameReference { get; }Remarks