# IOllamaResource Properties

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

Represents an Ollama resource.

## Host

- Name: `Host`
- Modifiers: `abstract` `get`
- Returns: `EndpointReferenceExpression`

Gets the host endpoint reference for this resource.

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

## Models

- Name: `Models`
- Modifiers: `abstract` `get`
- Returns: `IReadOnlyList<string>`

Gets the list of models to download on initial startup.

```csharp
public abstract IReadOnlyList<string> Models { get; }
```

## Port

- Name: `Port`
- Modifiers: `abstract` `get`
- Returns: `EndpointReferenceExpression`

Gets the port endpoint reference for this resource.

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

## PrimaryEndpoint

- Name: `PrimaryEndpoint`
- Modifiers: `abstract` `get`
- Returns: `EndpointReference`

Gets the endpoint for the Ollama server.

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

## UriExpression

- Name: `UriExpression`
- Modifiers: `abstract` `get`
- Returns: `ReferenceExpression`

Gets the connection URI expression for the Ollama server.

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

## Remarks

Format: `http://{host}:{port}`.
