summaryrefslogtreecommitdiffstats
path: root/src/share/api/lease4-get-by-hostname.json
blob: 38e5224ce0096602835eeb90b504d16abd2bf820 (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
39
40
41
42
43
44
45
46
47
{
    "access": "read",
    "avail": "1.7.1",
    "brief": [
        "This command retrieves all IPv4 leases with the specified hostname."
    ],
    "cmd-syntax": [
        "{",
        "    \"command\": \"lease4-get-by-hostname\",",
        "    \"arguments\": {",
        "        \"hostname\": \"myhost.example.com.\"",
        "    }",
        "}"
    ],
    "description": "See <xref linkend=\"command-lease4-get-by-hostname\"/>",
    "hook": "lease_cmds",
    "name": "lease4-get-by-hostname",
    "resp-comment": [
        "Result 0 is returned when at least one lease is found, 1 when parameters are malformed or missing,",
        "3 is returned if no leases are found."
    ],
    "resp-syntax": [
        "  {",
        "    \"arguments\": {",
        "      \"leases\": [",
        "        {",
        "          \"client-id\": \"01:00:0c:01:02:03:04\",",
        "          \"cltt\": 1600432232,",
        "          \"fqdn-fwd\": false,",
        "          \"fqdn-rev\": false,",
        "          \"hostname\": \"myhost.example.com.\",",
        "          \"hw-address\": \"00:0c:01:02:03:04\",",
        "          \"ip-address\": \"192.168.1.150\",",
        "          \"state\": 0,",
        "          \"subnet-id\": 1,",
        "          \"valid-lft\": 4000",
        "        }",
        "      ]",
        "    },",
        "    \"result\": 0,",
        "    \"text\": \"1 IPv4 lease(s) found.\"",
        "  }"
    ],
    "support": [
        "kea-dhcp4"
    ]
}