Skip to content
DocsTry Aspire
DocsTry

RedPandaConsoleContainerResource.withHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.RedPanda v13.5.0
interface RedPandaConsoleContainerResource {
// ... omitted for brevity
withHostPort(port: number): RedPandaConsoleContainerResource;
}

Signature

methodwithHostPortbuilder
Configures the host port that the Redpanda Console resource is exposed on instead of using a randomly assigned port.
withHostPort(port: number): RedPandaConsoleContainerResource
portnumber
RedPandaConsoleContainerResource

Defined on

This method is defined on the following type: