summaryrefslogtreecommitdiffstats
path: root/src/share/api/lease6-add.json
blob: 5c4ba5abfacfcac9e85bd1c6d16bb0194a2fd5ec (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
{
    "access": "write",
    "avail": "1.3.0",
    "brief": [
        "This command administratively creates a new lease."
    ],
    "cmd-comment": [
        "lease6-add can be also used to add leases for IPv6 prefixes."
    ],
    "cmd-syntax": [
        "{",
        "    \"command\": \"lease6-add\",",
        "    \"arguments\": {",
        "        \"subnet-id\": 66,",
        "        \"ip-address\": \"2001:db8::3\",",
        "        \"duid\": \"1a:1b:1c:1d:1e:1f:20:21:22:23:24\",",
        "        \"iaid\": 1234",
        "    }",
        "}"
    ],
    "description": "See <xref linkend=\"idp64\"/>",
    "hook": "lease_cmds",
    "name": "lease6-add",
    "resp-syntax": [
        "{ \"result\": 0, \"text\": \"Lease added.\" }",
        "or",
        "{ \"result\": 1, \"text\": \"missing parameter 'ip-address' (<string>:3:19)\" }"
    ],
    "support": [
        "kea-dhcp6"
    ]
}