Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

RedPandaConsoleContainerResource.WithHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.RedPanda v13.6.1
type RedPandaConsoleContainerResource interface {
// ... omitted for brevity
WithHostPort(port *float64) RedPandaConsoleContainerResource
}

Signature

methodWithHostPortbuilder
Configures the host port that the Redpanda Console resource is exposed on instead of using a randomly assigned port.
WithHostPort(port *float64) RedPandaConsoleContainerResource
port*float64The port to bind on the host. If null a random port is assigned.
RedPandaConsoleContainerResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: