<!-- autogenerated using cmd_docgen. Do not edit by hand! -->
<appendix xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="api">
<title>API Reference</title>
- <para>Kea currently supports 71 commands:
+ <para>Kea currently supports 119 commands:
<command><link linkend="ref-build-report">build-report</link></command>
, <command><link linkend="ref-cache-clear">cache-clear</link></command>
, <command><link linkend="ref-cache-get">cache-get</link></command>
, <command><link linkend="ref-network6-list">network6-list</link></command>
, <command><link linkend="ref-network6-subnet-add">network6-subnet-add</link></command>
, <command><link linkend="ref-network6-subnet-del">network6-subnet-del</link></command>
+, <command><link linkend="ref-remote-global-parameter4-del">remote-global-parameter4-del</link></command>
+, <command><link linkend="ref-remote-global-parameter4-get">remote-global-parameter4-get</link></command>
+, <command><link linkend="ref-remote-global-parameter4-get-all">remote-global-parameter4-get-all</link></command>
+, <command><link linkend="ref-remote-global-parameter4-set">remote-global-parameter4-set</link></command>
+, <command><link linkend="ref-remote-global-parameter6-del">remote-global-parameter6-del</link></command>
+, <command><link linkend="ref-remote-global-parameter6-get">remote-global-parameter6-get</link></command>
+, <command><link linkend="ref-remote-global-parameter6-get-all">remote-global-parameter6-get-all</link></command>
+, <command><link linkend="ref-remote-global-parameter6-set">remote-global-parameter6-set</link></command>
+, <command><link linkend="ref-remote-network4-del">remote-network4-del</link></command>
+, <command><link linkend="ref-remote-network4-get">remote-network4-get</link></command>
+, <command><link linkend="ref-remote-network4-list">remote-network4-list</link></command>
+, <command><link linkend="ref-remote-network4-set">remote-network4-set</link></command>
+, <command><link linkend="ref-remote-network6-del">remote-network6-del</link></command>
+, <command><link linkend="ref-remote-network6-get">remote-network6-get</link></command>
+, <command><link linkend="ref-remote-network6-list">remote-network6-list</link></command>
+, <command><link linkend="ref-remote-network6-set">remote-network6-set</link></command>
+, <command><link linkend="ref-remote-option-def4-del">remote-option-def4-del</link></command>
+, <command><link linkend="ref-remote-option-def4-get">remote-option-def4-get</link></command>
+, <command><link linkend="ref-remote-option-def4-get-all">remote-option-def4-get-all</link></command>
+, <command><link linkend="ref-remote-option-def4-set">remote-option-def4-set</link></command>
+, <command><link linkend="ref-remote-option-def6-del">remote-option-def6-del</link></command>
+, <command><link linkend="ref-remote-option-def6-get">remote-option-def6-get</link></command>
+, <command><link linkend="ref-remote-option-def6-get-all">remote-option-def6-get-all</link></command>
+, <command><link linkend="ref-remote-option-def6-set">remote-option-def6-set</link></command>
+, <command><link linkend="ref-remote-option4-global-del">remote-option4-global-del</link></command>
+, <command><link linkend="ref-remote-option4-global-get">remote-option4-global-get</link></command>
+, <command><link linkend="ref-remote-option4-global-get-all">remote-option4-global-get-all</link></command>
+, <command><link linkend="ref-remote-option4-global-set">remote-option4-global-set</link></command>
+, <command><link linkend="ref-remote-option6-global-del">remote-option6-global-del</link></command>
+, <command><link linkend="ref-remote-option6-global-get">remote-option6-global-get</link></command>
+, <command><link linkend="ref-remote-option6-global-get-all">remote-option6-global-get-all</link></command>
+, <command><link linkend="ref-remote-option6-global-set">remote-option6-global-set</link></command>
+, <command><link linkend="ref-remote-subnet4-del-by-id">remote-subnet4-del-by-id</link></command>
+, <command><link linkend="ref-remote-subnet4-del-by-prefix">remote-subnet4-del-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet4-get-by-id">remote-subnet4-get-by-id</link></command>
+, <command><link linkend="ref-remote-subnet4-get-by-prefix">remote-subnet4-get-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet4-list">remote-subnet4-list</link></command>
+, <command><link linkend="ref-remote-subnet4-set">remote-subnet4-set</link></command>
+, <command><link linkend="ref-remote-subnet6-del-by-id">remote-subnet6-del-by-id</link></command>
+, <command><link linkend="ref-remote-subnet6-del-by-prefix">remote-subnet6-del-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet6-get-by-id">remote-subnet6-get-by-id</link></command>
+, <command><link linkend="ref-remote-subnet6-get-by-prefix">remote-subnet6-get-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet6-list">remote-subnet6-list</link></command>
+, <command><link linkend="ref-remote-subnet6-set">remote-subnet6-set</link></command>
, <command><link linkend="ref-reservation-add">reservation-add</link></command>
, <command><link linkend="ref-reservation-del">reservation-del</link></command>
, <command><link linkend="ref-reservation-get">reservation-get</link></command>
, <command><link linkend="ref-network4-list">network4-list</link></command>
, <command><link linkend="ref-network4-subnet-add">network4-subnet-add</link></command>
, <command><link linkend="ref-network4-subnet-del">network4-subnet-del</link></command>
+, <command><link linkend="ref-remote-global-parameter4-del">remote-global-parameter4-del</link></command>
+, <command><link linkend="ref-remote-global-parameter4-get">remote-global-parameter4-get</link></command>
+, <command><link linkend="ref-remote-global-parameter4-get-all">remote-global-parameter4-get-all</link></command>
+, <command><link linkend="ref-remote-global-parameter4-set">remote-global-parameter4-set</link></command>
+, <command><link linkend="ref-remote-network4-del">remote-network4-del</link></command>
+, <command><link linkend="ref-remote-network4-get">remote-network4-get</link></command>
+, <command><link linkend="ref-remote-network4-list">remote-network4-list</link></command>
+, <command><link linkend="ref-remote-network4-set">remote-network4-set</link></command>
+, <command><link linkend="ref-remote-option-def4-del">remote-option-def4-del</link></command>
+, <command><link linkend="ref-remote-option-def4-get">remote-option-def4-get</link></command>
+, <command><link linkend="ref-remote-option-def4-get-all">remote-option-def4-get-all</link></command>
+, <command><link linkend="ref-remote-option-def4-set">remote-option-def4-set</link></command>
+, <command><link linkend="ref-remote-option4-global-del">remote-option4-global-del</link></command>
+, <command><link linkend="ref-remote-option4-global-get-all">remote-option4-global-get-all</link></command>
+, <command><link linkend="ref-remote-option4-global-set">remote-option4-global-set</link></command>
+, <command><link linkend="ref-remote-subnet4-del-by-id">remote-subnet4-del-by-id</link></command>
+, <command><link linkend="ref-remote-subnet4-del-by-prefix">remote-subnet4-del-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet4-get-by-id">remote-subnet4-get-by-id</link></command>
+, <command><link linkend="ref-remote-subnet4-get-by-prefix">remote-subnet4-get-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet4-list">remote-subnet4-list</link></command>
+, <command><link linkend="ref-remote-subnet4-set">remote-subnet4-set</link></command>
, <command><link linkend="ref-reservation-add">reservation-add</link></command>
, <command><link linkend="ref-reservation-del">reservation-del</link></command>
, <command><link linkend="ref-reservation-get">reservation-get</link></command>
, <command><link linkend="ref-subnet6-update">subnet6-update</link></command>
, <command><link linkend="ref-version-get">version-get</link></command>
.</para>
+<para xml:id="commands-undocumented">Commands supported by undocumented daemon: <command><link linkend="ref-remote-global-parameter6-del">remote-global-parameter6-del</link></command>
+, <command><link linkend="ref-remote-global-parameter6-get">remote-global-parameter6-get</link></command>
+, <command><link linkend="ref-remote-global-parameter6-get-all">remote-global-parameter6-get-all</link></command>
+, <command><link linkend="ref-remote-global-parameter6-set">remote-global-parameter6-set</link></command>
+, <command><link linkend="ref-remote-network6-del">remote-network6-del</link></command>
+, <command><link linkend="ref-remote-network6-get">remote-network6-get</link></command>
+, <command><link linkend="ref-remote-network6-list">remote-network6-list</link></command>
+, <command><link linkend="ref-remote-network6-set">remote-network6-set</link></command>
+, <command><link linkend="ref-remote-option-def6-del">remote-option-def6-del</link></command>
+, <command><link linkend="ref-remote-option-def6-get">remote-option-def6-get</link></command>
+, <command><link linkend="ref-remote-option-def6-get-all">remote-option-def6-get-all</link></command>
+, <command><link linkend="ref-remote-option-def6-set">remote-option-def6-set</link></command>
+, <command><link linkend="ref-remote-option4-global-get">remote-option4-global-get</link></command>
+, <command><link linkend="ref-remote-option6-global-del">remote-option6-global-del</link></command>
+, <command><link linkend="ref-remote-option6-global-get">remote-option6-global-get</link></command>
+, <command><link linkend="ref-remote-option6-global-get-all">remote-option6-global-get-all</link></command>
+, <command><link linkend="ref-remote-option6-global-set">remote-option6-global-set</link></command>
+, <command><link linkend="ref-remote-subnet6-del-by-id">remote-subnet6-del-by-id</link></command>
+, <command><link linkend="ref-remote-subnet6-del-by-prefix">remote-subnet6-del-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet6-get-by-id">remote-subnet6-get-by-id</link></command>
+, <command><link linkend="ref-remote-subnet6-get-by-prefix">remote-subnet6-get-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet6-list">remote-subnet6-list</link></command>
+, <command><link linkend="ref-remote-subnet6-set">remote-subnet6-set</link></command>
+.</para>
+<para xml:id="commands-cb_cmds-lib">Commands supported by cb_cmds hook library: <command><link linkend="ref-remote-global-parameter4-del">remote-global-parameter4-del</link></command>
+, <command><link linkend="ref-remote-global-parameter4-get">remote-global-parameter4-get</link></command>
+, <command><link linkend="ref-remote-global-parameter4-get-all">remote-global-parameter4-get-all</link></command>
+, <command><link linkend="ref-remote-global-parameter4-set">remote-global-parameter4-set</link></command>
+, <command><link linkend="ref-remote-network4-del">remote-network4-del</link></command>
+, <command><link linkend="ref-remote-network4-get">remote-network4-get</link></command>
+, <command><link linkend="ref-remote-network4-list">remote-network4-list</link></command>
+, <command><link linkend="ref-remote-network4-set">remote-network4-set</link></command>
+, <command><link linkend="ref-remote-option-def4-del">remote-option-def4-del</link></command>
+, <command><link linkend="ref-remote-option-def4-get">remote-option-def4-get</link></command>
+, <command><link linkend="ref-remote-option-def4-get-all">remote-option-def4-get-all</link></command>
+, <command><link linkend="ref-remote-option-def4-set">remote-option-def4-set</link></command>
+, <command><link linkend="ref-remote-option4-global-del">remote-option4-global-del</link></command>
+, <command><link linkend="ref-remote-option4-global-get-all">remote-option4-global-get-all</link></command>
+, <command><link linkend="ref-remote-option4-global-set">remote-option4-global-set</link></command>
+, <command><link linkend="ref-remote-subnet4-del-by-id">remote-subnet4-del-by-id</link></command>
+, <command><link linkend="ref-remote-subnet4-del-by-prefix">remote-subnet4-del-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet4-get-by-id">remote-subnet4-get-by-id</link></command>
+, <command><link linkend="ref-remote-subnet4-get-by-prefix">remote-subnet4-get-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet4-list">remote-subnet4-list</link></command>
+, <command><link linkend="ref-remote-subnet4-set">remote-subnet4-set</link></command>
+.</para>
<para xml:id="commands-class_cmds-lib">Commands supported by class_cmds hook library: <command><link linkend="ref-class-add">class-add</link></command>
, <command><link linkend="ref-class-del">class-del</link></command>
, <command><link linkend="ref-class-get">class-get</link></command>
, <command><link linkend="ref-subnet6-list">subnet6-list</link></command>
, <command><link linkend="ref-subnet6-update">subnet6-update</link></command>
.</para>
+<para xml:id="commands-undocumented-lib">Commands supported by undocumented hook library: <command><link linkend="ref-remote-global-parameter6-del">remote-global-parameter6-del</link></command>
+, <command><link linkend="ref-remote-global-parameter6-get">remote-global-parameter6-get</link></command>
+, <command><link linkend="ref-remote-global-parameter6-get-all">remote-global-parameter6-get-all</link></command>
+, <command><link linkend="ref-remote-global-parameter6-set">remote-global-parameter6-set</link></command>
+, <command><link linkend="ref-remote-network6-del">remote-network6-del</link></command>
+, <command><link linkend="ref-remote-network6-get">remote-network6-get</link></command>
+, <command><link linkend="ref-remote-network6-list">remote-network6-list</link></command>
+, <command><link linkend="ref-remote-network6-set">remote-network6-set</link></command>
+, <command><link linkend="ref-remote-option-def6-del">remote-option-def6-del</link></command>
+, <command><link linkend="ref-remote-option-def6-get">remote-option-def6-get</link></command>
+, <command><link linkend="ref-remote-option-def6-get-all">remote-option-def6-get-all</link></command>
+, <command><link linkend="ref-remote-option-def6-set">remote-option-def6-set</link></command>
+, <command><link linkend="ref-remote-option4-global-get">remote-option4-global-get</link></command>
+, <command><link linkend="ref-remote-option6-global-del">remote-option6-global-del</link></command>
+, <command><link linkend="ref-remote-option6-global-get">remote-option6-global-get</link></command>
+, <command><link linkend="ref-remote-option6-global-get-all">remote-option6-global-get-all</link></command>
+, <command><link linkend="ref-remote-option6-global-set">remote-option6-global-set</link></command>
+, <command><link linkend="ref-remote-subnet6-del-by-id">remote-subnet6-del-by-id</link></command>
+, <command><link linkend="ref-remote-subnet6-del-by-prefix">remote-subnet6-del-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet6-get-by-id">remote-subnet6-get-by-id</link></command>
+, <command><link linkend="ref-remote-subnet6-get-by-prefix">remote-subnet6-get-by-prefix</link></command>
+, <command><link linkend="ref-remote-subnet6-list">remote-subnet6-list</link></command>
+, <command><link linkend="ref-remote-subnet6-set">remote-subnet6-set</link></command>
+.</para>
<!-- start of build-report -->
<section xml:id="reference-build-report">
<title>build-report reference</title>
<screen>{
"result": 0
"text": "123 entries returned."
- "arguments": <list of cashed host>
+ "arguments": <list of host reservations>
}</screen>
Result is an integer representation of the status. Currently supported statuses are:
<itemizedlist>
<screen>{
"result": <integer>,
"arguments": {
- <JSON configuration here, starting with Dhcp4, Dhcp6, Dhcp-ddns, or Control-agent object>
+ <JSON configuration here, starting with Dhcp4, Dhcp6, or Control-agent object>
}
}</screen>
Result is an integer representation of the status. Currently supported statuses are:
}
}
}</screen>
-where <server> is the configuration element name for a given server such as "Dhcp4" or "Dhcp6"</para>
+where >server< is the configuration element name for a given server such as "Dhcp4" or "Dhcp6"</para>
<para>Response syntax:
<screen>{"result": 0, "text": "Configuration seems sane..." }
<para>Availability: 1.4.0 (<link linkend="commands-high_availability-lib">high_availability</link> hook)</para>
-<para>Description and examples: See <xref linkend="ha-server-states"/></para>
+<para>Description and examples: See <xref linkend="command-ha-heartbeat"/></para>
<para>Command syntax:
<screen>{
- "command": "ha-heartbeat"
+ "command": "ha-heartbeat",
}</screen>
</para>
"service": [ <service, typically "dhcp4" or "dhcp6"> ],
"arguments": {
"scopes": [ "HA_server1", "HA_server2" ]
- }
-}</screen>
+ }</screen>
In the example given, the arguments configure the server to handle traffic from both HA_server1 and HA_server2 scopes.</para>
<para>Response syntax:
<para>Command syntax:
<screen>{
- "command": "lease4-get-all",
+ "command": "lease4-get-all"
"arguments": "subnets"
}</screen>
The lease4-get-all command may result in very large responses.</para>
<para>Availability: 1.3.0 (<link linkend="commands-lease_cmds-lib">lease_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-lease4-add"/></para>
+<para>Description and examples: See <xref linkend="command-lease6-add"/></para>
<para>Command syntax:
<screen>{
lease6-add can be also used to add leases for IPv6 prefixes..</para>
<para>Response syntax:
- <screen>{ "result": 0,
- "text": "Lease added." }
-
- { "result": 1,
- "text": "missing parameter 'ip-address' (<string>:3:19)" }</screen>
+ <screen>{ "result": 0, "text": "Lease added." }
+ { "result": 1, "text": "missing parameter 'ip-address' (<string>:3:19)" }</screen>
Result is an integer representation of the status. Currently supported statuses are:
<itemizedlist>
<listitem><para>0 - success</para></listitem>
<para>Availability: 1.3.0 (<link linkend="commands-lease_cmds-lib">lease_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-lease4-del"/></para>
+<para>Description and examples: See <xref linkend="command-lease6-del"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-lease_cmds-lib">lease_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-lease4-get"/></para>
+<para>Description and examples: See <xref linkend="command-lease6-get"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-lease_cmds-lib">lease_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-lease4-get-all"/></para>
+<para>Description and examples: See <xref linkend="command-lease6-get-all"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-lease_cmds-lib">lease_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-lease4-update"/></para>
+<para>Description and examples: See <xref linkend="command-lease6-update"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-lease_cmds-lib">lease_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-lease4-wipe"/></para>
+<para>Description and examples: See <xref linkend="command-lease6-wipe"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-subnet_cmds-lib">subnet_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-network4-add"/></para>
+<para>Description and examples: See <xref linkend="command-network6-add"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-subnet_cmds-lib">subnet_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-network4-del"/></para>
+<para>Description and examples: See <xref linkend="command-network6-del"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-subnet_cmds-lib">subnet_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-network4-get"/></para>
+<para>Description and examples: See <xref linkend="command-network6-get"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-subnet_cmds-lib">subnet_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-network4-list"/></para>
+<para>Description and examples: See <xref linkend="command-network6-list"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-subnet_cmds-lib">subnet_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-network4-subnet-add"/></para>
+<para>Description and examples: See <xref linkend="command-network6-subnet-add"/></para>
<para>Command syntax:
<screen>{
<para>Availability: 1.3.0 (<link linkend="commands-subnet_cmds-lib">subnet_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-network4-subnet-del"/></para>
+<para>Description and examples: See <xref linkend="command-network6-subnet-del"/></para>
<para>Command syntax:
<screen>{
</section>
<!-- end of network6-subnet-del -->
-<!-- start of reservation-add -->
-<section xml:id="reference-reservation-add">
-<title>reservation-add reference</title>
-<para xml:id="ref-reservation-add"><command>reservation-add</command> - adds a new host reservation. The reservation may include IPv4 address,
- IPv6 addresses, IPv6 prefixes, various identifiers, a class
- the client will be assigned to, DHCPv4 and DHCPv6 options and
- more.</para>
+<!-- start of remote-global-parameter4-del -->
+<section xml:id="reference-remote-global-parameter4-del">
+<title>remote-global-parameter4-del reference</title>
+<para xml:id="ref-remote-global-parameter4-del"><command>remote-global-parameter4-del</command> - This command is used to delete a global DHCPv4 parameter from a configuration database. The server will use the value specified in the configuration file or a default value (if the parameter is not specified in the configuration file) after deleting the parameter from the database.</para>
-<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
-<para>Availability: 1.2.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook)</para>
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-reservation-add"/></para>
+<para>Description and examples: See <xref linkend="command-remote-global-parameter4-del"/></para>
<para>Command syntax:
<screen>{
- "command": "reservation-add",
+ "command": "remote-global-parameter4-del",
"arguments": {
- "reservation": {
- "boot-file-name": <string>,
- "comment": <string>
- "client-id": <string>,
- "circuit-id": <string>,
- "duid": <string>,
- "flex-id": <string>,
- "ip-address": <string (IPv4 address)>,
- "ip-addresses": [ <comma separated strings> ],
- "hw-address": <string>,
- "hostname": <string>,
- "next-server": <string (IPv4 address)>,
- "option-data-list": [ <comma separated structures defining options> ],
- "prefixes": [ <comma separated IPv6 prefixes> ],
- "reservation-client-classes": [ <comma separated strings> ],
- "server-hostname": <string>,
- "subnet-id": <integer>,
- "user-context": <any valid JSON>,
+ "parameters": [ <parameter name> ],
+ "remote": {
+ <specification of the database to connect to>
}
}
}</screen>
-Note the ip-address, client-id, next-server, server-hostname and
-boot-file-name are IPv4 specific. duid, ip-addresses and prefixes are
-IPv6 specific.</para>
+This command includes a list with exactly one name of the parameter to be deleted. The <command>remote</command> map contains specification of the backend from which the global parameter should be deleted. Typically it contains "type": "mysql".</para>
<para>Response syntax:
- <screen>
-{
- "result": <integer>,
- "text": <string>
-}</screen>
-Result is an integer representation of the status. Currently supported statuses are:
-<itemizedlist>
- <listitem><para>0 - success</para></listitem>
- <listitem><para>1 - error</para></listitem>
- <listitem><para>2 - unsupported</para></listitem>
- <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)
- </para></listitem>
-</itemizedlist></para>
-
-</section>
-<!-- end of reservation-add -->
-
-<!-- start of reservation-del -->
-<section xml:id="reference-reservation-del">
-<title>reservation-del reference</title>
-<para xml:id="ref-reservation-del"><command>reservation-del</command> - Deletes an existing host reservation.</para>
-
-<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
-
-<para>Availability: 1.2.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook)</para>
-
-<para>Description and examples: See <xref linkend="command-reservation-del"/></para>
-
-<para>Command syntax:
<screen>{
- "command": "reservation-del",
+ "result": 0,
+ "text": "DHCPv4 global parameter successfully deleted.",
"arguments": {
- "subnet-id": <integer>,
- "ip-address": <string>,
- "identifier-type": <one of "hw-address", "duid", "circuit-id", "client-id" and "flex-id">,
- "identifier": <string>
+ "count": 1
}
}</screen>
-The host reservation can be identified by either (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier).</para>
-
-<para>Response syntax:
- <screen>{
- "result": <integer>,
- "text": <string>
-}
-</screen>
Result is an integer representation of the status. Currently supported statuses are:
<itemizedlist>
<listitem><para>0 - success</para></listitem>
</para>
</section>
-<!-- end of reservation-del -->
+<!-- end of remote-global-parameter4-del -->
-<!-- start of reservation-get -->
-<section xml:id="reference-reservation-get">
-<title>reservation-get reference</title>
-<para xml:id="ref-reservation-get"><command>reservation-get</command> - Attempts to retrieve an existing host reservation</para>
+<!-- start of remote-global-parameter4-get -->
+<section xml:id="reference-remote-global-parameter4-get">
+<title>remote-global-parameter4-get reference</title>
+<para xml:id="ref-remote-global-parameter4-get"><command>remote-global-parameter4-get</command> - This command is used to fetch selected global parameter for the server from the specified database.</para>
-<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
-<para>Availability: 1.2.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook)</para>
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-reservation-get"/></para>
+<para>Description and examples: See <xref linkend="command-remote-global-parameter4-get"/></para>
<para>Command syntax:
<screen>{
- "command": "reservation-get",
+ "command": "remote-global-parameter4-get"
"arguments": {
- "subnet-id": <integer>,
- "identifier-type": <string with one value out of: hw-address|duid|circuit-id|client-id|flex-id>,
- "identifier": <string>;
+ "parameters": [ <parameter name> ],
+ "remote": {
+ <specification of the database to connect to>
+ }
}
-}</screen>
-The host reservation can be identified by either (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier).</para>
+}
+
+</screen>
+The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
<para>Response syntax:
<screen>{
- "result": <integer>,
- "text": <string>,
+ "result": 0,
+ "text": "DHCPv4 global parameter found.",
"arguments": {
- "boot-file-name": <string>,
- "comment": <string>
- "client-id": <string>,
- "circuit-id": <string>,
- "duid": <string>,
- "flex-id": <string>,
- "ip-address": <string (IPv4 address)>,
- "ip-addresses": [ <comma separated strings> ],
- "hw-address": <string>,
- "hostname": <string>,
- "next-server": <string (IPv4 address)>,
- "option-data-list": [ <comma separated structures defining options> ],
- "prefixes": [ <comma separated IPv6 prefixes> ],
- "reservation-client-classes": [ <comma separated strings> ],
- "server-hostname": <string>,
- "subnet-id": <integer>,
- "user-context": <any valid JSON>,
+ "parameters": {
+ <parameter name>: <parameter value>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ },
+ "count": 1
}
}</screen>
-Arguments object appear only if a host is found. Many fields in the arguments
-object appear only if specific field is set.</para>
+The returned response contains a map with a global parameter name/value pair. The value may be a JSON string, integer, real or boolean. The metadata is included and it provides database specific information associated with the returned object.</para>
</section>
-<!-- end of reservation-get -->
+<!-- end of remote-global-parameter4-get -->
-<!-- start of reservation-get-all -->
-<section xml:id="reference-reservation-get-all">
-<title>reservation-get-all reference</title>
-<para xml:id="ref-reservation-get-all"><command>reservation-get-all</command> - Retrieve all host reservations for a specified subnet.</para>
+<!-- start of remote-global-parameter4-get-all -->
+<section xml:id="reference-remote-global-parameter4-get-all">
+<title>remote-global-parameter4-get-all reference</title>
+<para xml:id="ref-remote-global-parameter4-get-all"><command>remote-global-parameter4-get-all</command> - This command is used to fetch all global parameters for the server from the specified database.</para>
-<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
-<para>Availability: 1.6.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook)</para>
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-reservation-get-all"/></para>
+<para>Description and examples: See <xref linkend="command-remote-global-parameter4-get-all"/></para>
<para>Command syntax:
<screen>{
- "command": "reservation-get-all",
+ "command": "remote-global-parameter4-get-all"
"arguments": {
- "subnet-id": <integer>
+ "remote": {
+ <specification of the database to connect to>
+ }
}
}</screen>
-Host reservations can be identified by subnet-id.</para>
+The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
<para>Response syntax:
<screen>{
- "result": <integer>,
- "text": <string>,
+ "result": 0,
+ "text": "DHCPv4 global parameters found.",
"arguments": {
- "hosts": [
+ "parameters": [
{
- "boot-file-name": <string>,
- "comment": <string>
- "client-id": <string>,
- "circuit-id": <string>,
- "duid": <string>,
- "flex-id": <string>,
- "ip-address": <string (IPv4 address)>,
- "ip-addresses": [ <comma separated strings> ],
- "hw-address": <string>,
- "hostname": <string>,
- "next-server": <string (IPv4 address)>,
- "option-data-list": [ <comma separated structures defining options> ],
- "prefixes": [ <comma separated IPv6 prefixes> ],
- "reservation-client-classes": [ <comma separated strings> ],
- "server-hostname": <string>,
- "subnet-id": <integer>,
- "user-context": <any valid JSON>,
+ <first parameter name>: <first parameter value>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
},
- ...
- ]
+ {
+ <second parameter name>: <second parameter value>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ }
+ ],
+ "count": 2
}
}</screen>
-
-The reservation-get-all command may result in very large responses.</para>
+The returned response contains a list of maps. Each map contains a global parameter name/value pair. The value may be a JSON string, integer, real or boolean. The metadata is appended to each parameter and it provides database specific information associated with the returned objects.</para>
</section>
-<!-- end of reservation-get-all -->
+<!-- end of remote-global-parameter4-get-all -->
-<!-- start of reservation-get-page -->
-<section xml:id="reference-reservation-get-page">
-<title>reservation-get-page reference</title>
-<para xml:id="ref-reservation-get-page"><command>reservation-get-page</command> - Retrieve all host reservations for a specified subnet by pages.</para>
+<!-- start of remote-global-parameter4-set -->
+<section xml:id="reference-remote-global-parameter4-set">
+<title>remote-global-parameter4-set reference</title>
+<para xml:id="ref-remote-global-parameter4-set"><command>remote-global-parameter4-set</command> - This command is used to create or update one more global parameters for a server.</para>
-<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
-<para>Availability: 1.6.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook) at the exception of the Cassandra host backend</para>
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-reservation-get-page"/></para>
+<para>Description and examples: See <xref linkend="command-remote-global-parameter4-set"/></para>
<para>Command syntax:
<screen>{
- "command": "reservation-get-page",
+ "command": "remote-global-parameter4-set"
"arguments": {
- "subnet-id": <integer>,
- "limit": <integer>,
- "source-index": <integer>,
- "from": <integer>
+ "parameters": {
+ <first parameter name>: <first parameter value>,
+ <second parameter name>: <second parameter value>
+ },
+ "remote": {
+ <specification of the database to connect to>
+ }
}
}</screen>
-Returned host reservations are from the specified subnet. Page size is
-limited by the limit parameter. Start of the page is given by the optional
-source index (default 0 i.e. configuration file) and from host id (default
-0).
-</para>
+The <command>remote</command> map contains specification of the backend where global parameter should be set. Typically it contains "type": "mysql".</para>
<para>Response syntax:
<screen>{
- "result": <integer>,
- "text": <string>,
- "arguments": {
- "source-index": <string>,
- "count": <string>,
- "next": <integer>,
- "hosts": [
- {
- "boot-file-name": <string>,
- "comment": <string>
- "client-id": <string>,
- "circuit-id": <string>,
- "duid": <string>,
- "flex-id": <string>,
- "ip-address": <string (IPv4 address)>,
- "ip-addresses": [ <comma separated strings> ],
- "hw-address": <string>,
- "hostname": <string>,
- "next-server": <string (IPv4 address)>,
- "option-data-list": [ <comma separated structures defining options> ],
- "prefixes": [ <comma separated IPv6 prefixes> ],
- "reservation-client-classes": [ <comma separated strings> ],
- "server-hostname": <string>,
- "subnet-id": <integer>,
- "user-context": <any valid JSON>,
- },
- ...
- ]
- }
-}</screen>
-The source index and the next host id should be used getting the next page.
-After the last page the result is 3 (empty).
-</para>
-</section>
-<!-- end of reservation-get-page -->
-
-<!-- start of shutdown -->
-<section xml:id="reference-shutdown">
-<title>shutdown reference</title>
-<para xml:id="ref-shutdown"><command>shutdown</command> - The shutdown command instructs the server to initiate its shutdown procedure.</para>
-
-<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command>, <command><link linkend="commands-kea-dhcp-ddns">kea-dhcp-ddns</link></command>, <command><link linkend="commands-kea-ctrl-agent">kea-ctrl-agent</link></command></para>
-
-<para>Availability: 1.0.0 (built-in)</para>
-
-<para>Description and examples: See <xref linkend="command-shutdown"/></para>
-
-<para>Command syntax:
- <screen>{
- "command": "shutdown"
+ "result": 0,
+ "text": "DHCPv4 global parameter(s) successfully set."
}</screen>
-The server will respond with a confirmation that the shutdown
- procedure has been initiated.</para>
-
-<para>Response syntax:
- <screen>{
- "result": <integer>,
- "text": <string>
-}
-</screen>
Result is an integer representation of the status. Currently supported statuses are:
<itemizedlist>
<listitem><para>0 - success</para></listitem>
</para>
</section>
-<!-- end of shutdown -->
+<!-- end of remote-global-parameter4-set -->
-<!-- start of stat-lease4-get -->
-<section xml:id="reference-stat-lease4-get">
-<title>stat-lease4-get reference</title>
-<para xml:id="ref-stat-lease4-get"><command>stat-lease4-get</command> - The stat-lease4-get command fetches lease statistics for a range
- of known IPv4 subnets.</para>
+<!-- start of remote-global-parameter6-del -->
+<section xml:id="reference-remote-global-parameter6-del">
+<title>remote-global-parameter6-del reference</title>
+<para xml:id="ref-remote-global-parameter6-del"><command>remote-global-parameter6-del</command> - a sentence or two explaining what this command does</para>
-<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
-<para>Availability: 1.4.0 (<link linkend="commands-stat_cmds-lib">stat_cmds</link> hook)</para>
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-stat-lease4-get"/></para>
+<para>Description and examples: See <xref linkend="command-remote-global-parameter6-del"/></para>
<para>Command syntax:
- <screen>{
- "command": "stat-lease4-get"
-}</screen>
-</para>
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
<para>Response syntax:
- <screen>{
- "result": 0,
- "text": "stat-lease4-get: 2 rows found",
- "arguments": {
- "result-set": {
- "columns": [ "subnet-id",
- "total-addresses",
- "assigned-addresses",
- "declined-addresses" ]
- "rows": [
- [ 10, 256, 111, 0 ],
- [ 20, 4098, 2034, 4 ]
- ],
- "timestamp": "2018-05-04 15:03:37.000000"
- }
- }
- }</screen>
-Result is an integer representation of the status. Currently supported statuses are:
-<itemizedlist>
- <listitem><para>0 - success</para></listitem>
- <listitem><para>1 - error</para></listitem>
- <listitem><para>2 - unsupported</para></listitem>
- <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
-</itemizedlist>
-</para>
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
</section>
-<!-- end of stat-lease4-get -->
+<!-- end of remote-global-parameter6-del -->
+
+<!-- start of remote-global-parameter6-get -->
+<section xml:id="reference-remote-global-parameter6-get">
+<title>remote-global-parameter6-get reference</title>
+<para xml:id="ref-remote-global-parameter6-get"><command>remote-global-parameter6-get</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-global-parameter6-get"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-global-parameter6-get -->
+
+<!-- start of remote-global-parameter6-get-all -->
+<section xml:id="reference-remote-global-parameter6-get-all">
+<title>remote-global-parameter6-get-all reference</title>
+<para xml:id="ref-remote-global-parameter6-get-all"><command>remote-global-parameter6-get-all</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-global-parameter6-get-all"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-global-parameter6-get-all -->
+
+<!-- start of remote-global-parameter6-set -->
+<section xml:id="reference-remote-global-parameter6-set">
+<title>remote-global-parameter6-set reference</title>
+<para xml:id="ref-remote-global-parameter6-set"><command>remote-global-parameter6-set</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-global-parameter6-set"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-global-parameter6-set -->
+
+<!-- start of remote-network4-del -->
+<section xml:id="reference-remote-network4-del">
+<title>remote-network4-del reference</title>
+<para xml:id="ref-remote-network4-del"><command>remote-network4-del</command> - This command is used to delete an IPv4 shared network from the configuration database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-network4-del"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-network4-del",
+ "arguments": {
+ "shared-networks": [ {
+ "name": <shared network name>
+ } ],
+ "subnets-action": "keep" | "delete",
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one name of the shared network to be deleted. The <command>subnets-action</command> denotes whether the subnets in this shared network should be deleted or not. The <command>remote</command> map contains specification of the backend from which the shared network should be deleted. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "1 IPv4 shared network(s) deleted.",
+ "arguments": {
+ "count": 1
+ }
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of remote-network4-del -->
+
+<!-- start of remote-network4-get -->
+<section xml:id="reference-remote-network4-get">
+<title>remote-network4-get reference</title>
+<para xml:id="ref-remote-network4-get"><command>remote-network4-get</command> - This command is used to fetch selected IPv4 shared network for the server from the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-network4-get"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-network4-get"
+ "arguments": {
+ "shared-networks": [ {
+ "name": <shared network name>
+ } ],
+ "subnets-include": "full" | "no",
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one name of the shared network to be returned. The <command>subnets-include</command> optional parameter allows for specifying whether subnets belonging to the shared network should also be returned. The <command>remote</command> map contains specification of the backend from which the shared network should be fetched. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "IPv4 shared network 'floor1' found.",
+ "arguments": {
+ "shared-networks": [ {
+ "name": <shared network name>,
+ "metadata": {
+ "server-tag": <server tag>
+ },
+ <the rest of the shared network information, potentially including subnets>
+ } ],
+ "count": 1
+ }
+}</screen>
+The metadata is included in the returned shared network definition and it provides database specific information associated with the returned object.</para>
+
+</section>
+<!-- end of remote-network4-get -->
+
+<!-- start of remote-network4-list -->
+<section xml:id="reference-remote-network4-list">
+<title>remote-network4-list reference</title>
+<para xml:id="ref-remote-network4-list"><command>remote-network4-list</command> - This command is used to fetch a list of all subnets for the particular server from the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-network4-list"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-network4-list"
+ "arguments": {
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The <command>remote</command> map contains specification of the backend from which the shared networks should be fetched. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "2 IPv4 shared network(s) found.",
+ "arguments": {
+ "shared-networks": [
+ {
+ "name": <first shared network name>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ },
+ {
+ "name": <second shared network name>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ }
+ ],
+ "count": 2
+ }
+}</screen>
+The returned response contains a list of maps. Each map contains a shared network name and the metadata which provides database specific information associated with the shared networks. The returned list does not contain full definitions of the shared networks. Use <command>remote-network4-get</command> to fetch the full information about the selected shared networks.</para>
+
+</section>
+<!-- end of remote-network4-list -->
+
+<!-- start of remote-network4-set -->
+<section xml:id="reference-remote-network4-set">
+<title>remote-network4-set reference</title>
+<para xml:id="ref-remote-network4-set"><command>remote-network4-set</command> - This command is used to create or update IPv4 shared network for a server in the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-network4-set"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-network4-set",
+ "arguments": {
+ "shared-networks": [ {
+ <shared network specification excluding subnets list>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The provided list must contain exactly one shared network specification. It must not contain subnets (subnet4 parameter). The subnets are added to the shared network using <command>remote-subnet4-set</command> command. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "IPv4 shared network successfully set."
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of remote-network4-set -->
+
+<!-- start of remote-network6-del -->
+<section xml:id="reference-remote-network6-del">
+<title>remote-network6-del reference</title>
+<para xml:id="ref-remote-network6-del"><command>remote-network6-del</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-network6-del"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-network6-del -->
+
+<!-- start of remote-network6-get -->
+<section xml:id="reference-remote-network6-get">
+<title>remote-network6-get reference</title>
+<para xml:id="ref-remote-network6-get"><command>remote-network6-get</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-network6-get"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-network6-get -->
+
+<!-- start of remote-network6-list -->
+<section xml:id="reference-remote-network6-list">
+<title>remote-network6-list reference</title>
+<para xml:id="ref-remote-network6-list"><command>remote-network6-list</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-network6-list"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-network6-list -->
+
+<!-- start of remote-network6-set -->
+<section xml:id="reference-remote-network6-set">
+<title>remote-network6-set reference</title>
+<para xml:id="ref-remote-network6-set"><command>remote-network6-set</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-network6-set"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-network6-set -->
+
+<!-- start of remote-option-def4-del -->
+<section xml:id="reference-remote-option-def4-del">
+<title>remote-option-def4-del reference</title>
+<para xml:id="ref-remote-option-def4-del"><command>remote-option-def4-del</command> - This command is used to delete a DHCPv4 option definition from the configuration database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option-def4-del"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-option-def4-del",
+ "arguments": {
+ "option-defs": [ {
+ "code": <option code>,
+ "space": <option space
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one option definition specification comprising an option name and code. The <command>remote</command> map contains specification of the backend from which the shared network should be deleted. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "1 DHCPv4 option definition(s) deleted.",
+ "arguments": {
+ "count": 1
+ }
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of remote-option-def4-del -->
+
+<!-- start of remote-option-def4-get -->
+<section xml:id="reference-remote-option-def4-get">
+<title>remote-option-def4-get reference</title>
+<para xml:id="ref-remote-option-def4-get"><command>remote-option-def4-get</command> - This command is used to fetch DHCPv4 option definition for the server from the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option-def4-get"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-option-def4-get"
+ "service": [ "dhcp4" ],
+ "arguments": {
+ "option-defs": [ {
+ "code": <option code>,
+ "space": <option space>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The desired option definition is identified by the pair of option code/space values. The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "DHCPv4 option definition 222 in 'dhcp4' found.",
+ "arguments": {
+ "option-defs": [ {
+ <option definition>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ } ],
+ "count": 1
+ }
+}</screen>
+The metadata is included and it provides database specific information associated with the returned object.</para>
+
+</section>
+<!-- end of remote-option-def4-get -->
+
+<!-- start of remote-option-def4-get-all -->
+<section xml:id="reference-remote-option-def4-get-all">
+<title>remote-option-def4-get-all reference</title>
+<para xml:id="ref-remote-option-def4-get-all"><command>remote-option-def4-get-all</command> - This command is used to fetch all option definitions for the server from the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option-def4-get-all"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-option-def4-get-all"
+ "arguments": {
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "2 DHCPv4 option definition(s) found.",
+ "arguments": {
+ "option-defs": [
+ {
+ <first option definition>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ },
+ {
+ <second option definition>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ }
+ ],
+ "count": <count of the objects returned>
+ }
+}</screen>
+The returned response contains a list of maps. Each map contains an option definition specification and the metadata including database specific information associated with the returned objects.</para>
+
+</section>
+<!-- end of remote-option-def4-get-all -->
+
+<!-- start of remote-option-def4-set -->
+<section xml:id="reference-remote-option-def4-set">
+<title>remote-option-def4-set reference</title>
+<para xml:id="ref-remote-option-def4-set"><command>remote-option-def4-set</command> - This command is used to create or update DHCPv4 option definition for the server in the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option-def4-set"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-option-def4-set",
+ "service": [ "dhcp4" ],
+ "arguments": {
+ "option-defs": [ {
+ <option definition specification>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The provided list must contain exactly one option definition specification. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "DHCPv4 option definition set."
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of remote-option-def4-set -->
+
+<!-- start of remote-option-def6-del -->
+<section xml:id="reference-remote-option-def6-del">
+<title>remote-option-def6-del reference</title>
+<para xml:id="ref-remote-option-def6-del"><command>remote-option-def6-del</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option-def6-del"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-option-def6-del -->
+
+<!-- start of remote-option-def6-get -->
+<section xml:id="reference-remote-option-def6-get">
+<title>remote-option-def6-get reference</title>
+<para xml:id="ref-remote-option-def6-get"><command>remote-option-def6-get</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option-def6-get"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-option-def6-get -->
+
+<!-- start of remote-option-def6-get-all -->
+<section xml:id="reference-remote-option-def6-get-all">
+<title>remote-option-def6-get-all reference</title>
+<para xml:id="ref-remote-option-def6-get-all"><command>remote-option-def6-get-all</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option-def6-get-all"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-option-def6-get-all -->
+
+<!-- start of remote-option-def6-set -->
+<section xml:id="reference-remote-option-def6-set">
+<title>remote-option-def6-set reference</title>
+<para xml:id="ref-remote-option-def6-set"><command>remote-option-def6-set</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option-def6-set"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-option-def6-set -->
+
+<!-- start of remote-option4-global-del -->
+<section xml:id="reference-remote-option4-global-del">
+<title>remote-option4-global-del reference</title>
+<para xml:id="ref-remote-option4-global-del"><command>remote-option4-global-del</command> - This command is used to delete a DHCPv4 global option from the configuration database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option4-global-del"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-option4-global-del",
+ "arguments": {
+ "options": [ {
+ "code": <option code>
+ "space": <option space>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one option specification comprising an option name and code. The <command>remote</command> map contains specification of the backend from which the shared network should be deleted. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>
+ "result": 0,
+ "text": "1 DHCPv4 option(s) deleted.",
+ "arguments": {
+ "count": 1
+ }</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of remote-option4-global-del -->
+
+<!-- start of remote-option4-global-get -->
+<section xml:id="reference-remote-option4-global-get">
+<title>remote-option4-global-get reference</title>
+<para xml:id="ref-remote-option4-global-get"><command>remote-option4-global-get</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option4-global-get"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-option4-global-get -->
+
+<!-- start of remote-option4-global-get-all -->
+<section xml:id="reference-remote-option4-global-get-all">
+<title>remote-option4-global-get-all reference</title>
+<para xml:id="ref-remote-option4-global-get-all"><command>remote-option4-global-get-all</command> - This command is used to fetch all DHCPv4 global options for the server from the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option4-global-get-all"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-option4-global-get-all"
+ "arguments": {
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "2 DHCPv4 option(s) found.",
+ "arguments": {
+ "options": [
+ {
+ <first option specification>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ },
+ {
+ <second option specification>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ }
+ ],
+ "count": <count of the objects returned>
+ }
+}</screen>
+The returned response contains a list of maps. Each map contains a global option specification and the metadata including database specific information associated with the returned object.</para>
+
+</section>
+<!-- end of remote-option4-global-get-all -->
+
+<!-- start of remote-option4-global-set -->
+<section xml:id="reference-remote-option4-global-set">
+<title>remote-option4-global-set reference</title>
+<para xml:id="ref-remote-option4-global-set"><command>remote-option4-global-set</command> - This command is used to create or update DHCPv4 global option for the server in the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option4-global-set"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-option4-global-set",
+ "service": [ "dhcp4" ],
+ "arguments": {
+ "options": [ {
+ <global option specification>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The provided list must cotain exactly one option specification. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "DHCPv4 option set."
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of remote-option4-global-set -->
+
+<!-- start of remote-option6-global-del -->
+<section xml:id="reference-remote-option6-global-del">
+<title>remote-option6-global-del reference</title>
+<para xml:id="ref-remote-option6-global-del"><command>remote-option6-global-del</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option6-global-del"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-option6-global-del -->
+
+<!-- start of remote-option6-global-get -->
+<section xml:id="reference-remote-option6-global-get">
+<title>remote-option6-global-get reference</title>
+<para xml:id="ref-remote-option6-global-get"><command>remote-option6-global-get</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option6-global-get"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-option6-global-get -->
+
+<!-- start of remote-option6-global-get-all -->
+<section xml:id="reference-remote-option6-global-get-all">
+<title>remote-option6-global-get-all reference</title>
+<para xml:id="ref-remote-option6-global-get-all"><command>remote-option6-global-get-all</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option6-global-get-all"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-option6-global-get-all -->
+
+<!-- start of remote-option6-global-set -->
+<section xml:id="reference-remote-option6-global-set">
+<title>remote-option6-global-set reference</title>
+<para xml:id="ref-remote-option6-global-set"><command>remote-option6-global-set</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-option6-global-set"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-option6-global-set -->
+
+<!-- start of remote-subnet4-del-by-id -->
+<section xml:id="reference-remote-subnet4-del-by-id">
+<title>remote-subnet4-del-by-id reference</title>
+<para xml:id="ref-remote-subnet4-del-by-id"><command>remote-subnet4-del-by-id</command> - This command is used to delete an IPv4 subnet by ID from the configuration database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet4-del-by-id"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-subnet4-del-by-id",
+ "service": [ "dhcp4" ],
+ "arguments": {
+ "subnets": [ {
+ "id": <subnet identifier>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one id of the subnet to be deleted. The <command>remote</command> map contains specification of the backend from which the subnet should be deleted. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "1 IPv4 subnet(s) deleted.",
+ "arguments": {
+ "count": 1
+ }
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of remote-subnet4-del-by-id -->
+
+<!-- start of remote-subnet4-del-by-prefix -->
+<section xml:id="reference-remote-subnet4-del-by-prefix">
+<title>remote-subnet4-del-by-prefix reference</title>
+<para xml:id="ref-remote-subnet4-del-by-prefix"><command>remote-subnet4-del-by-prefix</command> - This command is used to delete an IPv4 subnet by prefix from the configuration database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet4-del-by-prefix"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-subnet4-del-by-prefix",
+ "service": [ "dhcp4" ],
+ "arguments": {
+ "subnets": [ {
+ "subnet": <subnet prefix>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one prefix of the subnet to be deleted. The <command>remote</command> map contains specification of the backend from which the subnet should be deleted. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "1 IPv4 subnet(s) deleted.",
+ "arguments": {
+ "count": 1
+ }
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of remote-subnet4-del-by-prefix -->
+
+<!-- start of remote-subnet4-get-by-id -->
+<section xml:id="reference-remote-subnet4-get-by-id">
+<title>remote-subnet4-get-by-id reference</title>
+<para xml:id="ref-remote-subnet4-get-by-id"><command>remote-subnet4-get-by-id</command> - This command is used to fetch selected IPv4 subnet by ID for the server from the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet4-get-by-id"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-subnet4-get-by-id"
+ "arguments": {
+ "subnets": [ {
+ "id": <subnet identifier>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one id of the subnet to be returned. The <command>remote</command> map contains specification of the backend from which the subnet should be fetched. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "IPv4 subnet 123 found.",
+ "arguments": {
+ "subnets": [ {
+ "id": <subnet identifier>
+ "subnet": <subnet prefix>,
+ "shared-network-name": <shared network name> | null,
+ "metadata": {
+ "server-tag": <server tag>
+ },
+ <the rest of the subnet specification here>
+ } ],
+ "count": 1
+ }
+}</screen>
+The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object.</para>
+
+</section>
+<!-- end of remote-subnet4-get-by-id -->
+
+<!-- start of remote-subnet4-get-by-prefix -->
+<section xml:id="reference-remote-subnet4-get-by-prefix">
+<title>remote-subnet4-get-by-prefix reference</title>
+<para xml:id="ref-remote-subnet4-get-by-prefix"><command>remote-subnet4-get-by-prefix</command> - This command is used to fetch selected IPv4 subnet by prefix for the server from the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet4-get-by-prefix"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-subnet4-get-by-prefix"
+ "arguments": {
+ "subnets": [ {
+ "subnet": <subnet prefix>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one prefix of the subnet to be returned. The <command>remote</command> map contains specification of the backend from which the subnet should be fetched. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "IPv4 subnet 123 found.",
+ "arguments": {
+ "subnets": [ {
+ "id": <subnet identifier>
+ "subnet": <subnet prefix>,
+ "shared-network-name": <shared network name> | null,
+ "metadata": {
+ "server-tag": <server tag>
+ },
+ <the rest of the subnet specification here>
+ } ],
+ "count": 1
+ }
+}</screen>
+The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object.</para>
+
+</section>
+<!-- end of remote-subnet4-get-by-prefix -->
+
+<!-- start of remote-subnet4-list -->
+<section xml:id="reference-remote-subnet4-list">
+<title>remote-subnet4-list reference</title>
+<para xml:id="ref-remote-subnet4-list"><command>remote-subnet4-list</command> - This command is used to fetch a list of all IPv4 shared networks for the particular server from the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet4-list"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-subnet4-list"
+ "arguments": {
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The <command>remote</command> map contains specification of the backend from which the subnets should be fetched. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "2 IPv4 subnets found.",
+ "arguments": {
+ "subnets": [
+ {
+ "id": <first subnet identifier>,
+ "subnet": <first subnet prefix>,
+ "shared-network-name": <shared network name> | null,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ },
+ {
+ "id": <second subnet identifier>,
+ "subnet": <second subnet prefix>,
+ "shared-network-name": <shared network name> | null,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ }
+ ],
+ "count": 2
+ }
+}</screen>
+The returned response contains a list of maps. Each map contains a subnet identifier, prefix and shared network name to which the subnet belongs. If the subnet does not belong to a shared netork the name is null. The metadata includes database specific information associated with the subnets. The returned list does not contain full subnet definitions. Use <command>remote-subnet4-get</command> to fetch the full information about the selected subnets.</para>
+
+</section>
+<!-- end of remote-subnet4-list -->
+
+<!-- start of remote-subnet4-set -->
+<section xml:id="reference-remote-subnet4-set">
+<title>remote-subnet4-set reference</title>
+<para xml:id="ref-remote-subnet4-set"><command>remote-subnet4-set</command> - This command is used to create or update IPv4 subnet for a server in the specified database.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-cb_cmds-lib">cb_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet4-set"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "remote-subnet4-set",
+ "arguments": {
+ "subnets": [ {
+ "id": <subnet identifier>,
+ "subnet": <subnet prefix>,
+ "shared-network-name": <shared network name>
+ <the rest of the subnet specification here>
+ } ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The provided list must contain exactly one subnet specification. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains "type": "mysql".</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "IPv4 subnet successfully set.",
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of remote-subnet4-set -->
+
+<!-- start of remote-subnet6-del-by-id -->
+<section xml:id="reference-remote-subnet6-del-by-id">
+<title>remote-subnet6-del-by-id reference</title>
+<para xml:id="ref-remote-subnet6-del-by-id"><command>remote-subnet6-del-by-id</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet6-del-by-id"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-subnet6-del-by-id -->
+
+<!-- start of remote-subnet6-del-by-prefix -->
+<section xml:id="reference-remote-subnet6-del-by-prefix">
+<title>remote-subnet6-del-by-prefix reference</title>
+<para xml:id="ref-remote-subnet6-del-by-prefix"><command>remote-subnet6-del-by-prefix</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet6-del-by-prefix"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-subnet6-del-by-prefix -->
+
+<!-- start of remote-subnet6-get-by-id -->
+<section xml:id="reference-remote-subnet6-get-by-id">
+<title>remote-subnet6-get-by-id reference</title>
+<para xml:id="ref-remote-subnet6-get-by-id"><command>remote-subnet6-get-by-id</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet6-get-by-id"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-subnet6-get-by-id -->
+
+<!-- start of remote-subnet6-get-by-prefix -->
+<section xml:id="reference-remote-subnet6-get-by-prefix">
+<title>remote-subnet6-get-by-prefix reference</title>
+<para xml:id="ref-remote-subnet6-get-by-prefix"><command>remote-subnet6-get-by-prefix</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet6-get-by-prefix"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-subnet6-get-by-prefix -->
+
+<!-- start of remote-subnet6-list -->
+<section xml:id="reference-remote-subnet6-list">
+<title>remote-subnet6-list reference</title>
+<para xml:id="ref-remote-subnet6-list"><command>remote-subnet6-list</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet6-list"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-subnet6-list -->
+
+<!-- start of remote-subnet6-set -->
+<section xml:id="reference-remote-subnet6-set">
+<title>remote-subnet6-set reference</title>
+<para xml:id="ref-remote-subnet6-set"><command>remote-subnet6-set</command> - a sentence or two explaining what this command does</para>
+
+<para>Supported by: <command><link linkend="commands-undocumented">undocumented</link></command></para>
+
+<para>Availability: 0.0.0 (<link linkend="commands-undocumented-lib">undocumented</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-remote-subnet6-set"/></para>
+
+<para>Command syntax:
+ <screen>Syntax of the command</screen>
+Possibly some extra comments after the syntax.</para>
+
+<para>Response syntax:
+ <screen>Syntax of the response</screen>
+Optional extra comments after the resposne syntax.</para>
+
+</section>
+<!-- end of remote-subnet6-set -->
+
+<!-- start of reservation-add -->
+<section xml:id="reference-reservation-add">
+<title>reservation-add reference</title>
+<para xml:id="ref-reservation-add"><command>reservation-add</command> - adds a new host reservation. The reservation may include IPv4 address,
+ IPv6 addresses, IPv6 prefixes, various identifiers, a class
+ the client will be assigned to, DHCPv4 and DHCPv6 options and
+ more.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
+
+<para>Availability: 1.2.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-reservation-add"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "reservation-add",
+ "arguments": {
+ "reservation": {
+ "boot-file-name": <string>,
+ "comment": <string>
+ "client-id": <string>,
+ "circuit-id": <string>,
+ "duid": <string>,
+ "flex-id": <string>,
+ "ip-address": <string (IPv4 address)>,
+ "ip-addresses": [ <comma separated strings> ],
+ "hw-address": <string>,
+ "hostname": <string>,
+ "next-server": <string (IPv4 address)>,
+ "option-data-list": [ <comma separated structures defining options> ],
+ "prefixes": [ <comma separated IPv6 prefixes> ],
+ "reservation-client-classes": [ <comma separated strings> ],
+ "server-hostname": <string>,
+ "subnet-id": <integer>,
+ "user-context": <any valid JSON>,
+ }
+ }
+}</screen>
+Note the ip-address, client-id, next-server, server-hostname and
+boot-file-name are IPv4 specific. duid, ip-addresses and prefixes are
+IPv6 specific.</para>
+
+<para>Response syntax:
+ <screen>
+{
+ "result": <integer>,
+ "text": <string>
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)
+ </para></listitem>
+</itemizedlist></para>
+
+</section>
+<!-- end of reservation-add -->
+
+<!-- start of reservation-del -->
+<section xml:id="reference-reservation-del">
+<title>reservation-del reference</title>
+<para xml:id="ref-reservation-del"><command>reservation-del</command> - Deletes an existing host reservation.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
+
+<para>Availability: 1.2.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-reservation-del"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "reservation-del",
+ "arguments": {
+ "subnet-id": <integer>,
+ "ip-address": <string>,
+ "identifier-type": <one of "hw-address", "duid", "circuit-id", "client-id" and "flex-id">,
+ "identifier": <string>
+ }
+}</screen>
+The host reservation can be identified by either (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier).</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": <integer>,
+ "text": <string>
+}
+</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of reservation-del -->
+
+<!-- start of reservation-get -->
+<section xml:id="reference-reservation-get">
+<title>reservation-get reference</title>
+<para xml:id="ref-reservation-get"><command>reservation-get</command> - Attempts to retrieve an existing host reservation</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
+
+<para>Availability: 1.2.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-reservation-get"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "reservation-get",
+ "arguments": {
+ "subnet-id": <integer>,
+ "identifier-type": <string with one value out of: hw-address|duid|circuit-id|client-id|flex-id>,
+ "identifier": <string>;
+ }
+}</screen>
+The host reservation can be identified by either (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier).</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": <integer>,
+ "text": <string>,
+ "arguments": {
+ "boot-file-name": <string>,
+ "comment": <string>
+ "client-id": <string>,
+ "circuit-id": <string>,
+ "duid": <string>,
+ "flex-id": <string>,
+ "ip-address": <string (IPv4 address)>,
+ "ip-addresses": [ <comma separated strings> ],
+ "hw-address": <string>,
+ "hostname": <string>,
+ "next-server": <string (IPv4 address)>,
+ "option-data-list": [ <comma separated structures defining options> ],
+ "prefixes": [ <comma separated IPv6 prefixes> ],
+ "reservation-client-classes": [ <comma separated strings> ],
+ "server-hostname": <string>,
+ "subnet-id": <integer>,
+ "user-context": <any valid JSON>,
+ }
+}</screen>
+Arguments object appear only if a host is found. Many fields in the arguments
+object appear only if specific field is set.</para>
+
+</section>
+<!-- end of reservation-get -->
+
+<!-- start of reservation-get-all -->
+<section xml:id="reference-reservation-get-all">
+<title>reservation-get-all reference</title>
+<para xml:id="ref-reservation-get-all"><command>reservation-get-all</command> - Retrieve all host reservations for a specified subnet.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-reservation-get-all"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "reservation-get-all",
+ "arguments": {
+ "subnet-id": <integer>
+}</screen>
+</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": <integer>,
+ "text": <string>
+}
+</screen>
+reservation-get-all command may result in very large responses.</para>
+
+</section>
+<!-- end of reservation-get-all -->
+
+<!-- start of reservation-get-page -->
+<section xml:id="reference-reservation-get-page">
+<title>reservation-get-page reference</title>
+<para xml:id="ref-reservation-get-page"><command>reservation-get-page</command> - Retrieve host reservations for a specified subnet by page.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command></para>
+
+<para>Availability: 1.6.0 (<link linkend="commands-host_cmds-lib">host_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-reservation-get-page"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "reservation-get-page",
+ "arguments": {
+ "subnet-id": <integer>,
+ "limit": <integer>,
+ "source-index": <integer>,
+ "from": <integer>
+ }
+}</screen>
+the subnet id and the page size limit are mandatory. The source index and from host id are optional and default to 0. Values to use to next the next page are returned in responses in a next map.</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": <integer>,
+ "text": <string>
+}
+</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of reservation-get-page -->
+
+<!-- start of shutdown -->
+<section xml:id="reference-shutdown">
+<title>shutdown reference</title>
+<para xml:id="ref-shutdown"><command>shutdown</command> - The shutdown command instructs the server to initiate its shutdown procedure.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command>, <command><link linkend="commands-kea-dhcp6">kea-dhcp6</link></command>, <command><link linkend="commands-kea-dhcp-ddns">kea-dhcp-ddns</link></command>, <command><link linkend="commands-kea-ctrl-agent">kea-ctrl-agent</link></command></para>
+
+<para>Availability: 1.0.0 (built-in)</para>
+
+<para>Description and examples: See <xref linkend="command-shutdown"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "shutdown"
+}</screen>
+The server will respond with a confirmation that the shutdown
+ procedure has been initiated.</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": <integer>,
+ "text": <string>
+}
+</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of shutdown -->
+
+<!-- start of stat-lease4-get -->
+<section xml:id="reference-stat-lease4-get">
+<title>stat-lease4-get reference</title>
+<para xml:id="ref-stat-lease4-get"><command>stat-lease4-get</command> - The stat-lease4-get command fetches lease statistics for a range
+ of known IPv4 subnets.</para>
+
+<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
+
+<para>Availability: 1.4.0 (<link linkend="commands-stat_cmds-lib">stat_cmds</link> hook)</para>
+
+<para>Description and examples: See <xref linkend="command-stat-lease4-get"/></para>
+
+<para>Command syntax:
+ <screen>{
+ "command": "stat-lease4-get"
+}</screen>
+</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "stat-lease4-get: 2 rows found",
+ "arguments": {
+ "result-set": {
+ "columns": [ "subnet-id",
+ "total-addresses",
+ "assigned-addresses",
+ "declined-addresses" ]
+ "rows": [
+ [ 10, 256, 111, 0 ],
+ [ 20, 4098, 2034, 4 ]
+ ],
+ "timestamp": "2018-05-04 15:03:37.000000"
+ }
+ }
+ }</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+ <listitem><para>0 - success</para></listitem>
+ <listitem><para>1 - error</para></listitem>
+ <listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
+
+</section>
+<!-- end of stat-lease4-get -->
<!-- start of stat-lease6-get -->
<section xml:id="reference-stat-lease6-get">
<para>Availability: 1.4.0 (<link linkend="commands-stat_cmds-lib">stat_cmds</link> hook)</para>
-<para>Description and examples: See <xref linkend="command-stat-lease4-get"/></para>
+<para>Description and examples: See <xref linkend="command-stat-lease6-get"/></para>
<para>Command syntax:
<screen>{
<screen>{
"command": "subnet4-add",
"arguments": {
- "subnet4": [ {
+ "subnets": [ {
"id": 123,
"subnet": "10.20.30.0/24",
...
<!-- start of subnet4-update -->
<section xml:id="reference-subnet4-update">
<title>subnet4-update reference</title>
-<para xml:id="ref-subnet4-update"><command>subnet4-update</command> - This command is used to update a subnet in the existing server configuration.</para>
+<para xml:id="ref-subnet4-update"><command>subnet4-update</command> - This command is used to update a subnet in the existing server configuration.</para>
<para>Supported by: <command><link linkend="commands-kea-dhcp4">kea-dhcp4</link></command></para>
<screen>{
"command": "subnet4-update",
"arguments": {
- "subnet4": [ {
+ "subnets": [ {
"id": 123,
"subnet": "10.20.30.0/24",
...
<listitem><para>0 - success</para></listitem>
<listitem><para>1 - error</para></listitem>
<listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
</itemizedlist>
</para>
<listitem><para>0 - success</para></listitem>
<listitem><para>1 - error</para></listitem>
<listitem><para>2 - unsupported</para></listitem>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
</itemizedlist>
</para>