Skip to content
Docs Try Aspire

PostgresServerResource.withHostPort

Method
📦 Aspire.Hosting.Azure.PostgreSQL v13.2.0-preview.1.26159.1
interface PostgresServerResource {
// ... omitted for brevity
withHostPort(port: number): PostgresServerResource;
}

Signature

method withHostPort builder
Sets the host port for PostgreSQL
withHostPort(port: number): PostgresServerResource
port number
PostgresServerResource

Defined on

This method is defined on the following type: