Files
qdrant/openapi/openapi-shards.ytt.yaml
Tim Visée c075b28f1f Add timeout param remove peer API (#7235)
* Describe cluster peer remove timeout parameter in OpenAPI spec

* Remove trailing spaces
2025-09-09 16:58:08 +02:00

58 lines
1.7 KiB
YAML

#@ load("openapi.lib.yml", "response", "reference", "type", "array")
paths:
/collections/{collection_name}/shards:
put:
tags:
- Distributed
summary: Create shard key
operationId: create_shard_key
requestBody:
description: Shard key configuration
content:
application/json:
schema:
$ref: "#/components/schemas/CreateShardingKey"
parameters:
- name: collection_name
in: path
description: Name of the collection to create shards for
required: true
schema:
type: string
- name: timeout
in: query
description: |
Wait for operation commit timeout in seconds.
If timeout is reached - request will return with service error.
schema:
type: integer
responses: #@ response(type("boolean"))
/collections/{collection_name}/shards/delete:
post:
tags:
- Distributed
summary: Delete shard key
operationId: delete_shard_key
requestBody:
description: Select shard key to delete
content:
application/json:
schema:
$ref: "#/components/schemas/DropShardingKey"
parameters:
- name: collection_name
in: path
description: Name of the collection to create shards for
required: true
schema:
type: string
- name: timeout
in: query
description: |
Wait for operation commit timeout in seconds.
If timeout is reached - request will return with service error.
schema:
type: integer
responses: #@ response(type("boolean"))