# DbxContainerResource

- Module: [CommunityToolkit.Aspire.Hosting.Dbx](/reference/api/typescript/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

```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
  ```
