# QdrantServerResource

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

A resource that represents a Qdrant database.

## Definition

```typescript
interface QdrantServerResource
  extends IComputeResource,
    IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithArgs,
    IResourceWithConnectionString,
    QdrantServerResource]],
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IValueProvider,
    IValueWithReferences {
  readonly apiKeyParameter: ParameterResource;
  readonly connectionStringExpression: ReferenceExpression;
  readonly grpcHost: EndpointReferenceExpression;
  readonly grpcPort: EndpointReferenceExpression;
  readonly httpConnectionStringExpression: ReferenceExpression;
  readonly httpEndpoint: EndpointReference;
  readonly httpHost: EndpointReferenceExpression;
  readonly httpPort: EndpointReferenceExpression;
  readonly httpUriExpression: ReferenceExpression;
  readonly primaryEndpoint: EndpointReference;
  readonly uriExpression: ReferenceExpression;
  withDataBindMount(
      source: string,
      isReadOnly?: boolean): QdrantServerResource;
  withDataVolume(
      name?: string,
      isReadOnly?: boolean): QdrantServerResource;
}
```

## 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.
- `uriExpression`: `ReferenceExpression` `get` -- Gets the connection URI expression for the Qdrant gRPC endpoint.

## Methods

- [withDataBindMount](/reference/api/typescript/aspire.hosting.qdrant/qdrantserverresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a Qdrant container resource.
    ```typescript
  withDataBindMount(source: string, isReadOnly?: boolean): QdrantServerResource
  ```
- [withDataVolume](/reference/api/typescript/aspire.hosting.qdrant/qdrantserverresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a Qdrant container resource.
    ```typescript
  withDataVolume(name?: string, isReadOnly?: boolean): QdrantServerResource
  ```
