summaryrefslogtreecommitdiffstats
path: root/src/commands/sentinel-get-master-addr-by-name.json
blob: 998f95ec9a6961c423049123b74eb53708886630 (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
{
    "GET-MASTER-ADDR-BY-NAME": {
        "summary": "Returns the port and address of a master Redis instance.",
        "complexity": "O(1)",
        "group": "sentinel",
        "since": "2.8.4",
        "arity": 3,
        "container": "SENTINEL",
        "function": "sentinelCommand",
        "command_flags": [
            "ADMIN",
            "SENTINEL",
            "ONLY_SENTINEL"
        ],
        "reply_schema": {
            "type": "array",
            "minItems": 2,
            "maxItems": 2,
            "items": [
                {
                    "type": "string",
                    "description": "IP addr or hostname."
                },
                {
                    "type": "string",
                    "description": "Port.",
                    "pattern": "[0-9]+"
                }
            ]
        },
        "arguments": [
            {
                "name": "master-name",
                "type": "string"
            }
        ]
    }
}