# AddQdrant

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

Adds a Qdrant resource to the application. A container is used for local development.

## Remarks

The .NET client library uses the gRPC port by default to communicate and this resource exposes that endpoint.
This version of the package defaults to the tag of the container image.

## Definition

```go
func (DistributedApplicationBuilder) AddQdrant(
    name string,
    options ...*AddQdrantOptions,
) QdrantServerResource
```

## Parameters

- `name` (`string`) -- The name of the resource. This name will be used as the connection string name when referenced in a dependency
- `options` (`...*AddQdrantOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*AddQdrantOptions` argument.

- `ApiKey` (`*ParameterResource`) -- The parameter used to provide the API Key for the Qdrant resource. If `null` a random key will be generated as {name}-Key.
- `GrpcPort` (`*float64`) -- The host port of gRPC endpoint of Qdrant database.
- `HttpPort` (`*float64`) -- The host port of HTTP endpoint of Qdrant database.

## Returns

[`QdrantServerResource`](/reference/api/go/aspire.hosting.qdrant/qdrantserverresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Applies to

- `DistributedApplicationBuilder`
