summaryrefslogtreecommitdiffstats
path: root/src/commands/cluster-reset.json
blob: 6bd4fe65953b945cc1beee6717eb99d80459ce0f (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
33
34
35
36
37
38
{
    "RESET": {
        "summary": "Resets a node.",
        "complexity": "O(N) where N is the number of known nodes. The command may execute a FLUSHALL as a side effect.",
        "group": "cluster",
        "since": "3.0.0",
        "arity": -2,
        "container": "CLUSTER",
        "function": "clusterCommand",
        "command_flags": [
            "ADMIN",
            "STALE",
            "NOSCRIPT"
        ],
        "arguments": [
            {
                "name": "reset-type",
                "type": "oneof",
                "optional": true,
                "arguments": [
                    {
                        "name": "hard",
                        "type": "pure-token",
                        "token": "HARD"
                    },
                    {
                        "name": "soft",
                        "type": "pure-token",
                        "token": "SOFT"
                    }
                ]
            }
        ],
        "reply_schema": {
            "const": "OK"
        }
    }
}