# DbxContainerResource

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

Represents a container resource for dbx.

## Definition

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

## Properties

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

## Methods

- [withHostPort](/reference/api/typescript/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.
    ```typescript
  withHostPort(port: number): DbxContainerResource
  ```
