From: Wlodek Wencel Date: Thu, 15 Nov 2018 19:54:00 +0000 (+0100) Subject: [master] fixes in commands api documentation X-Git-Tag: 268-reservation-mode-is-not-global_base~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3723169fae2b90cd84b15d72a9142e9c1acee0b;p=thirdparty%2Fkea.git [master] fixes in commands api documentation --- diff --git a/doc/guide/api.xml b/doc/guide/api.xml index 35d920b8c9..eeeee62efb 100644 --- a/doc/guide/api.xml +++ b/doc/guide/api.xml @@ -342,7 +342,7 @@ Result is an integer representation of the status. Currently supported statuses { "result": 0 "text": "123 entries returned." - "arguments": <list of host reservations> + "arguments": <list of cashed host> } Result is an integer representation of the status. Currently supported statuses are: @@ -897,7 +897,7 @@ Result is an integer representation of the status. Currently supported statuses } } } -where >server< is the configuration element name for a given server such as "Dhcp4" or "Dhcp6" +where <server> is the configuration element name for a given server such as "Dhcp4" or "Dhcp6" Response syntax: {"result": 0, "text": "Configuration seems sane..." } @@ -1074,11 +1074,11 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.4.0 (high_availability hook) -Description and examples: See +Description and examples: See Command syntax: { - "command": "ha-heartbeat", + "command": "ha-heartbeat" } @@ -1110,7 +1110,8 @@ The response to this command is different from the typical command response. The "service": [ <service, typically "dhcp4" or "dhcp6"> ], "arguments": { "scopes": [ "HA_server1", "HA_server2" ] - } + } +} In the example given, the arguments configure the server to handle traffic from both HA_server1 and HA_server2 scopes. Response syntax: @@ -1304,7 +1305,7 @@ lease4-get returns a result that indicates a result of the operation and lease d Command syntax: { - "command": "lease4-get-all" + "command": "lease4-get-all", "arguments": "subnets" } The lease4-get-all command may result in very large responses. @@ -1416,7 +1417,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (lease_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -1431,8 +1432,11 @@ Result is an integer representation of the status. Currently supported statuses lease6-add can be also used to add leases for IPv6 prefixes.. Response syntax: - { "result": 0, "text": "Lease added." } - { "result": 1, "text": "missing parameter 'ip-address' (<string>:3:19)" } + { "result": 0, + "text": "Lease added." } + + { "result": 1, + "text": "missing parameter 'ip-address' (<string>:3:19)" } Result is an integer representation of the status. Currently supported statuses are: 0 - success @@ -1454,7 +1458,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (lease_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -1492,7 +1496,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (lease_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -1531,7 +1535,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (lease_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -1595,7 +1599,7 @@ The lease6-get-all command may result in very large responses. Availability: 1.3.0 (lease_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -1639,7 +1643,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (lease_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -2070,7 +2074,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (subnet_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -2135,7 +2139,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (subnet_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -2176,7 +2180,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (subnet_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -2234,7 +2238,7 @@ Note that the actual response contains many additional fields that are omitted h Availability: 1.3.0 (subnet_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -2274,7 +2278,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (subnet_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -2312,7 +2316,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.3.0 (subnet_cmds hook) -Description and examples: See +Description and examples: See Command syntax: { @@ -2589,7 +2593,7 @@ Result is an integer representation of the status. Currently supported statuses Availability: 1.4.0 (stat_cmds hook) -Description and examples: See +Description and examples: See Command syntax: {