Watch Aspire live streamsDocsTry Aspire

AzurePostgresFlexibleServerDatabaseResource Properties

ClassProperties8 members
A resource that represents an Azure PostgreSQL database. This is a child resource of an AzurePostgresFlexibleServerResource.
AnnotationsSection titled AnnotationsoverrideResourceAnnotationCollection
Gets the annotations associated with the resource.
public override ResourceAnnotationCollection Annotations { get; }
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection string expression for the Postgres database.
public ReferenceExpression ConnectionStringExpression { get; }
DatabaseNameSection titled DatabaseNamestring
Gets the database name.
public string DatabaseName { get; }
Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
public bool IsContainer { get; }
JdbcConnectionStringSection titled JdbcConnectionStringReferenceExpression
Gets the JDBC connection string for the Azure Postgres Flexible Server database.
public ReferenceExpression JdbcConnectionString { get; }
Format: jdbc:postgresql://{host}:{port}/{database}?sslmode=require&authenticationPluginClassName=com.azure.identity.extensions.jdbc.postgresql.AzurePostgresqlAuthenticationPlugin.
Gets the parent Azure PostgresSQL resource.
public AzurePostgresFlexibleServerResource 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 PostgreSQL server.
public ReferenceExpression UriExpression { get; }
Format: postgresql://{user}:{password}@{host}:{port}/{database}.