For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
CloudGitHub
  • API Reference
      • GETCollect telemetry data
      • GETRetrieve instance details
      • GETCollect Prometheus metrics data
      • GETCheck write protection
      • POSTSet write protection
      • GETKubernetes health check
      • GETKubernetes liveness probe
      • GETKubernetes readiness probe
LogoLogo
CloudGitHub
API ReferenceService

Check write protection

Deprecated
GET
/locks
GET
/locks
$curl http://localhost:6333/locks \
> -H "api-key: <apiKey>"
200Retrieved
1{
2 "usage": {
3 "cpu": 1,
4 "payload_io_read": 1,
5 "payload_io_write": 1,
6 "payload_index_io_read": 1,
7 "payload_index_io_write": 1,
8 "vector_io_read": 1,
9 "vector_io_write": 1
10 },
11 "time": 0.002,
12 "status": "ok",
13 "result": {
14 "write": true,
15 "error_message": "string"
16 }
17}
Retrieves the current lock setting. If write is false, all write operations and collection creation are restricted.
Was this page helpful?
Previous

Set write protection

Next
Built with

Authentication

api-keystring
API Key authentication via header

Response

successful operation
usageobject or any
timedouble
Time spent to process this request
statusstring
resultobject