# MilvusServerResource Properties

- Package: [Aspire.Hosting.Milvus](/reference/api/csharp/aspire.hosting.milvus.md)
- Type: [MilvusServerResource](/reference/api/csharp/aspire.hosting.milvus/milvusserverresource.md)
- Kind: `Properties`
- Members: `8`

A resource that represents a Milvus database.

## ApiKeyParameter

- Name: `ApiKeyParameter`
- Modifiers: `get`
- Returns: `ParameterResource`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Milvus/MilvusServerResource.cs#L32)

Gets the parameter that contains the Milvus API key.

```csharp
public ParameterResource ApiKeyParameter { get; }
```

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Milvus/MilvusServerResource.cs#L61-L62)

Gets the connection string expression for the Milvus gRPC endpoint.

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

## Remarks

Format: `Endpoint={uri};Key={token}`.

## Databases

- Name: `Databases`
- Modifiers: `get`
- Returns: `IReadOnlyDictionary<string, string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Milvus/MilvusServerResource.cs#L77)

A dictionary where the key is the resource name and the value is the database name.

```csharp
public IReadOnlyDictionary<string, string> Databases { get; }
```

## Host

- Name: `Host`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Milvus/MilvusServerResource.cs#L42)

Gets the host endpoint reference for this resource.

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

## Port

- Name: `Port`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Milvus/MilvusServerResource.cs#L47)

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/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Milvus/MilvusServerResource.cs#L37)

Gets the gRPC endpoint for the Milvus database.

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

## Token

- Name: `Token`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Milvus/MilvusServerResource.cs#L52)

Gets a valid access token to access the Milvus instance.

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

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Milvus/MilvusServerResource.cs#L70)

Gets URI expression for the Milvus instance.

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

## Remarks

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