# ContainerPortReference

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

Represents a TCP/UDP port that a container can expose.

## Definition

```typescript
interface ContainerPortReference
  extends IManifestExpressionProvider,
    IValueProvider,
    IValueWithReferences {
  readonly resource: IResource;
  readonly valueExpression: string;
}
```

## Properties

- `resource`: [IResource](/reference/api/typescript/aspire.hosting/iresource.md) `get` -- Gets the resource that this container port is associated with.
- `valueExpression`: `string` `get` -- Gets the ValueExpression property
