younifyd
Menu

Initiate a replica movement

Initiate a replica movement

POST/v1/replication/replicate

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Initiate a replica movement action (under replication).
  3. Fill in the fields below, then reference the result from later steps as {{initiateAReplicaMovement.response.data}}.

Request

Request body

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

sourceNodestringrequired

The name of the Weaviate node currently hosting the shard replica that needs to be moved or copied.

targetNodestringrequired

The name of the Weaviate node where the new shard replica will be created as part of the movement or copy operation.

collectionstringrequired

The name of the collection to which the target shard belongs.

shardstringrequired

The name of the shard whose replica is to be moved or copied.

typestring

Specifies the type of replication operation to perform. `COPY` creates a new replica on the target node while keeping the source replica. `MOVE` creates a new replica on the target node and then removes the source replica upon successful completion. Defaults to `COPY` if omitted.

One ofCOPYMOVEDefault "COPY"

json
{
  "sourceNode": "string",
  "targetNode": "string",
  "collection": "string",
  "shard": "string",
  "type": "COPY"
}

Response

Returns 200 with a any. Read it in later steps with {{initiateAReplicaMovement.response.data.<field>}}.

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