# DbxContainerResource

- Module: [CommunityToolkit.Aspire.Hosting.Dbx](/reference/api/go/communitytoolkit.aspire.hosting.dbx.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Represents a container resource for dbx.

## Definition

```go
type DbxContainerResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Properties

- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint for the dbx resource.

## Methods

- [WithHostPort](/reference/api/go/communitytoolkit.aspire.hosting.dbx/dbxcontainerresource/withhostport.md) -- `method` -- Configures the host port that the dbx resource is exposed on instead of using randomly assigned port.
  ```go
  WithHostPort(port *float64) DbxContainerResource
  ```
