younifyd
Menu

Recover from a snapshot (PUT /collections/{collection_name}/snapshots/recover)

Recover from a snapshot

PUT/collections/{collection_name}/snapshots/recover

Use it in a workflow

  1. Add a step and choose the Qdrant connector.
  2. Pick the Recover from a snapshot (PUT /collections/{collection_name}/snapshots/recover) action (under Snapshots).
  3. Fill in the fields below, then reference the result from later steps as {{recoverFromASnapshotPutCollectionsCollectionNameSnapshotsRecover.response.data}}.

Request

Path parameters

collection_namestringrequired

Name of the collection

Query parameters

waitboolean

If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.

Request body

Enter the body as JSON in the step's Body field.

locationstring (uri)required

Examples: - URL `http://localhost:8080/collections/my_collection/snapshots/my_snapshot` - Local path `file:///qdrant/snapshots/test_collection-2022-08-04-10-49-10.snapshot`

priorityoneOf

Defines which data should be used as a source of truth if there are other replicas in the cluster. If set to `Snapshot`, the snapshot will be used as a source of truth, and the current state will be overwritten. If set to `Replica`, the current state will be used as a source of truth, and after recovery it will be synchronized from other replicas.

Default null

checksumstring

Optional SHA256 checksum to verify snapshot integrity before recovery.

Default null

api_keystring

Optional API key used when fetching the snapshot from a remote URL.

Default null

json
{
  "location": "string",
  "priority": null,
  "checksum": null,
  "api_key": null
}

Response

Returns 200 with an object. Read it in later steps with {{recoverFromASnapshotPutCollectionsCollectionNameSnapshotsRecover.response.data.<field>}}.

timenumber (float)

Time spent to process this request

statusstring
resultboolean
json
{
  "time": 0.002,
  "status": "ok",
  "result": false
}

Need more? See the Qdrant guide for connection setup and behaviour shared by every action.