summaryrefslogtreecommitdiffstats
path: root/src/commands/cluster-replicas.json
blob: e01617feebf0bf043a3508056b39d3f5320ab49a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
    "REPLICAS": {
        "summary": "Lists the replica nodes of a master node.",
        "complexity": "O(N) where N is the number of replicas.",
        "group": "cluster",
        "since": "5.0.0",
        "arity": 3,
        "container": "CLUSTER",
        "function": "clusterCommand",
        "command_flags": [
            "ADMIN",
            "STALE"
        ],
        "command_tips": [
            "NONDETERMINISTIC_OUTPUT"
        ],
        "arguments": [
            {
                "name": "node-id",
                "type": "string"
            }
        ],
        "reply_schema": {
            "description": "a list of replica nodes replicating from the specified master node provided in the same format used by CLUSTER NODES",
            "type": "array",
            "items": {
                "type": "string",
                "description": "the serialized cluster configuration"
            }
        }
    }
}