Skip to main content
POST
Move hash slots to one shard of a sharded deployment, optionally only from another named shard

Authorizations

token
string
cookie
required

JWT token stored in HTTP-only cookie

Path Parameters

clusterName
string
required

Query Parameters

namespace
string
required

namespace is required

Minimum string length: 1

Body

application/json
slots
string
required

The slots to move: single slots and inclusive ranges separated by commas, such as "0-999,5000".

Required string length: 1 - 4096
to
string
required

The shard to move the slots to, by its name, such as "shard-98x".

Minimum string length: 1
Pattern: ^shard-[a-z0-9]+$
from
string

The shard the slots must come from. When set, the move is refused unless this shard owns every slot that to does not already own.

Minimum string length: 1
Pattern: ^shard-[a-z0-9]+$

Response

Default Response

message
string
required
opsName
string
required

Name of the created OpsRequest resource

clusterName
string
required
type
string
required
phase
string