# RedPandaServerResource.WithConsole

- Module: [CommunityToolkit.Aspire.Hosting.RedPanda](/reference/api/go/communitytoolkit.aspire.hosting.redpanda.md)
- Defined on: [RedPandaServerResource](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource.md)
- Version: `13.6.1`
- Kind: `method`

Adds a Redpanda Console container to the application, configured to connect to the Redpanda broker.

## Remarks

This version of the package defaults to the tag of the container image.

## Definition

```go
type RedPandaServerResource interface {
    // ... omitted for brevity
    WithConsole(options ...*WithConsoleOptions) RedPandaServerResource
}
```

## Signature

```go
WithConsole(options ...*WithConsoleOptions) RedPandaServerResource
```

## Parameters

- `options` (`...*WithConsoleOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithConsoleOptions` argument.

- `ConfigureContainer` (`func(obj RedPandaConsoleContainerResource)`) `callback` -- An optional callback to configure the Redpanda Console container resource.
- `ContainerName` (`*string`) -- The name of the container (optional).

## Returns

[`RedPandaServerResource`](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource.md) -- A reference to the `IResourceBuilder` for the Redpanda server resource.

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

## Defined on

- [RedPandaServerResource](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource.md) -- `handle`
