Skip to content
Docs Try Aspire

withDataVolume

Function
📦 Aspire.Hosting.Azure.PostgreSQL v13.2.0-preview.1.26159.1
interface PostgresServerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): PostgresServerResource;
}

Signature

method withDataVolume builder
Adds a data volume for PostgreSQL
withDataVolume(
name?: string,
isReadOnly?: boolean): PostgresServerResource
name string optional
isReadOnly boolean optional = False
PostgresServerResource

Applies to

This function is an extension method on the following types: