# RedPandaConsoleContainerResource

- Module: [CommunityToolkit.Aspire.Hosting.RedPanda](/reference/api/typescript/communitytoolkit.aspire.hosting.redpanda.md)
- Version: `13.5.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1)

A resource that represents a Redpanda Console container, a web UI for managing and inspecting one or more Redpanda (or Kafka) brokers.

## Definition

```typescript
interface RedPandaConsoleContainerResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  withHostPort(port: number): RedPandaConsoleContainerResource;
}
```

## Methods

- [withHostPort](/reference/api/typescript/communitytoolkit.aspire.hosting.redpanda/redpandaconsolecontainerresource/withhostport.md) -- `method` -- Configures the host port that the Redpanda Console resource is exposed on instead of using a randomly assigned port.
    ```typescript
  withHostPort(port: number): RedPandaConsoleContainerResource
  ```
