summaryrefslogtreecommitdiffstats
path: root/src/share/api/network4-get.json
blob: 84c1da9f4f97dc5a570a4bc7383119ed0934f48e (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
48
49
50
51
52
53
54
55
56
57
{
    "access": "read",
    "avail": "1.3.0",
    "brief": [
        "This command retrieves detailed information about shared networks, including subnets that are currently part of a given network."
    ],
    "cmd-syntax": [
        "{",
        "    \"command\": \"network4-get\",",
        "    \"arguments\": {",
        "        \"name\": \"floor13\"",
        "    }",
        "}"
    ],
    "description": "See <xref linkend=\"idp74\"/>",
    "hook": "subnet_cmds",
    "name": "network4-get",
    "resp-comment": [
        "Note that the actual response contains many additional fields that are omitted here for clarity."
    ],
    "resp-syntax": [
        "{",
        "    \"result\": 0,",
        "    \"text\": \"Info about IPv4 shared network 'floor13' returned\",",
        "    \"arguments\": {",
        "        \"shared-networks\": [",
        "        {",
        "            \"match-client-id\": true,",
        "            \"name\": \"floor13\",",
        "            \"option-data\": [ ],",
        "            \"rebind-timer\": 90,",
        "            \"relay\": {",
        "                \"ip-address\": \"0.0.0.0\"",
        "            },",
        "            \"renew-timer\": 60,",
        "            \"subnet4\": [",
        "                {",
        "                    \"subnet\": \"192.0.2.0/24\",",
        "                    \"id\": 5,",
        "                    <many other subnet specific details here>",
        "                },",
        "                {",
        "                    \"subnet\": \"192.0.3.0/31\",",
        "                    \"id\": 6,",
        "                    <many other subnet specific details here>",
        "                }",
        "            ],",
        "            \"valid-lifetime\": 120",
        "        }",
        "        ]",
        "    }",
        "}"
    ],
    "support": [
        "kea-dhcp4"
    ]
}