---
title: "Get lock options"
method: GET
path: "/locks"
tags: ["Service"]
---

# Get lock options

`GET /locks`

Get lock options. If write is locked, all write operations and collection creation are forbidden

## Response `200`

successful operation

- object
  - `usage` union
    - HardwareUsage — Usage of the hardware resources, spent to process the request
      - `cpu` integer, required
      - `io_read` integer, required
      - `io_write` integer, required
    - unknown
  - `time` number, float — Time spent to process this request
  - `status` string
  - `result` LocksOption
    - `error_message` string, nullable
    - `write` boolean, required

## Other responses

- `default` — error
- `4XX` — error

## Changes

- **2025-01-17** `a7900f38a79d` — 3 info
  - api tag `Service` added
  - api tag `service` removed
  - added the optional property `usage` to the response with the `200` status

[Change history](https://skmtc.dev/qdrant/apis/qdrant-api/changes/locks/get.md)

---

[API](https://skmtc.dev/qdrant/apis/qdrant-api.md) · [All operations](https://skmtc.dev/qdrant/apis/qdrant-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qdrant/qdrant-api/revisions/a7900f38a79d/schema)
