# QdrantServerResource

- Module: [Aspire.Hosting.Qdrant](/reference/api/go/aspire.hosting.qdrant.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

A resource that represents a Qdrant database.

## Definition

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

## Embeds

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

## Properties

- `ApiKeyParameter`: `ParameterResource` `get` -- Gets the parameter that contains the Qdrant API key.
- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the connection string expression for the Qdrant gRPC endpoint.
- `GrpcHost`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the gRPC endpoint.
- `GrpcPort`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the gRPC endpoint.
- `HttpConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the connection string expression for the Qdrant HTTP endpoint.
- `HttpEndpoint`: `EndpointReference` `get` -- Gets the HTTP endpoint for the Qdrant database.
- `HttpHost`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the HTTP endpoint.
- `HttpPort`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the HTTP endpoint.
- `HttpUriExpression`: `*ReferenceExpression` `get` -- Gets the connection URI expression for the Qdrant HTTP endpoint.
- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the gRPC endpoint for the Qdrant database.
- `ResourceTypeDisplayName`: `string` `get` -- Gets the ResourceTypeDisplayName property
- `UriExpression`: `*ReferenceExpression` `get` -- Gets the connection URI expression for the Qdrant gRPC endpoint.

## Methods

- [WithDataBindMount](/reference/api/go/aspire.hosting.qdrant/qdrantserverresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a Qdrant container resource.
  ```go
  WithDataBindMount(source string, options ...*WithDataBindMountOptions) QdrantServerResource
  ```
- [WithDataVolume](/reference/api/go/aspire.hosting.qdrant/qdrantserverresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a Qdrant container resource.
  ```go
  WithDataVolume(options ...*WithDataVolumeOptions) QdrantServerResource
  ```
