# PgAdminContainerResource

- Module: [Aspire.Hosting.PostgreSQL](/reference/api/go/aspire.hosting.postgresql.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

## Definition

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

## Embeds

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

## Methods

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