# QdrantServerResource

- Kind: `class`
- Package: [Aspire.Hosting.Qdrant](/reference/api/csharp/aspire.hosting.qdrant.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Qdrant/QdrantServerResource.cs)
- Inherits: `ContainerResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithCustomWithReference<QdrantServerResource>`, `IValueProvider`, `IValueWithReferences`

A resource that represents a Qdrant database.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class QdrantServerResource
    : Aspire.Hosting.ApplicationModel.ContainerResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithCustomWithReference<Aspire.Hosting.ApplicationModel.QdrantServerResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Qdrant/QdrantServerResource`

## Constructors

- [QdrantServerResource(string, ParameterResource)](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/constructors.md#constructor-string-parameterresource) -- Initializes a new instance of the [QdrantServerResource](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource.md) class.

## Properties

- [ApiKeyParameter](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#apikeyparameter) : `ParameterResource` `get` -- Gets the parameter that contains the Qdrant API key.
- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the Qdrant gRPC endpoint.
- [GrpcHost](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#grpchost) : `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the gRPC endpoint.
- [GrpcPort](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#grpcport) : `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the gRPC endpoint.
- [HttpConnectionStringExpression](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#httpconnectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the Qdrant HTTP endpoint.
- [HttpEndpoint](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#httpendpoint) : `EndpointReference` `get` -- Gets the HTTP endpoint for the Qdrant database.
- [HttpHost](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#httphost) : `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the HTTP endpoint.
- [HttpPort](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#httpport) : `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the HTTP endpoint.
- [HttpUriExpression](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#httpuriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the Qdrant HTTP endpoint.
- [PrimaryEndpoint](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the gRPC endpoint for the Qdrant database.
- [UriExpression](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the Qdrant gRPC endpoint.
