# OpenWebUIResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama.md)
- Type: [OpenWebUIResource](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama/openwebuiresource.md)
- Kind: `Properties`
- Members: `6`

A resource that represents an Open WebUI resource

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.Ollama/OpenWebUIResource.cs#L31-L32)

Gets the connection string expression for the Open WebUI endpoint.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Host

- Name: `Host`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.Ollama/OpenWebUIResource.cs#L20)

Gets the host endpoint reference for this resource.

```csharp
public EndpointReferenceExpression Host { get; }
```

## OllamaResources

- Name: `OllamaResources`
- Modifiers: `get`
- Returns: [IReadOnlyList<IOllamaResource>](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama/iollamaresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.Ollama/OpenWebUIResource.cs#L47)

Gets the list of Ollama resources that are associated with this Open WebUI resource.

```csharp
public IReadOnlyList<IOllamaResource> OllamaResources { get; }
```

## Port

- Name: `Port`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.Ollama/OpenWebUIResource.cs#L25)

Gets the port endpoint reference for this resource.

```csharp
public EndpointReferenceExpression Port { get; }
```

## PrimaryEndpoint

- Name: `PrimaryEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.Ollama/OpenWebUIResource.cs#L15)

Gets the http endpoint for the Open WebUI resource.

```csharp
public EndpointReference PrimaryEndpoint { get; }
```

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.Ollama/OpenWebUIResource.cs#L40)

Gets the connection URI expression for the Open WebUI endpoint.

```csharp
public ReferenceExpression UriExpression { get; }
```

## Remarks

Format: `http://{host}:{port}`. The scheme reflects the endpoint configuration and may be `https` when TLS is enabled.
