# OpenWebUIResource

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

A resource that represents an Open WebUI resource

## Definition

```go
type OpenWebUIResource interface {
    ExpressionValue
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithConnectionString
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

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

## Properties

- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the connection string expression for the Open WebUI endpoint.
- `Host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- `OllamaResources`: [`[]OllamaResource`](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaresource.md) `get` -- Gets the list of Ollama resources that are associated with this Open WebUI resource.
- `Port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the http endpoint for the Open WebUI resource.
- `UriExpression`: `*ReferenceExpression` `get` -- Gets the connection URI expression for the Open WebUI endpoint.

## Methods

- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.ollama/openwebuiresource/withdatavolume.md) -- `method` -- Adds a data volume to the Open WebUI container.
  ```go
  WithDataVolume(options ...*WithDataVolumeOptions) OpenWebUIResource
  ```
- [WithHostPort](/reference/api/go/communitytoolkit.aspire.hosting.ollama/openwebuiresource/withhostport.md) -- `method` -- Configures the host port that the Open WebUI resource is exposed on instead of using randomly assigned port.
  ```go
  WithHostPort(port *float64) OpenWebUIResource
  ```
