summaryrefslogtreecommitdiffstats
path: root/src/share/api/cache-insert.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/api/cache-insert.json')
-rw-r--r--src/share/api/cache-insert.json53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/share/api/cache-insert.json b/src/share/api/cache-insert.json
new file mode 100644
index 0000000..83d78d9
--- /dev/null
+++ b/src/share/api/cache-insert.json
@@ -0,0 +1,53 @@
+{
+ "access": "write",
+ "avail": "1.4.0",
+ "brief": [
+ "This command inserts a host into the cache."
+ ],
+ "cmd-syntax": [
+ "{",
+ " \"command\": \"cache-insert\",",
+ " \"arguments\": {",
+ " \"hw-address\": \"01:02:03:04:05:06\",",
+ " \"subnet-id4\": 4,",
+ " \"subnet-id6\": 0,",
+ " \"ip-address\": \"192.0.2.100\",",
+ " \"hostname\": \"somehost.example.org\",",
+ " \"client-classes4\": [ ],",
+ " \"client-classes6\": [ ],",
+ " \"option-data4\": [ ],",
+ " \"option-data6\": [ ],",
+ " \"next-server\": \"192.0.0.2\",",
+ " \"server-hostname\": \"server-hostname.example.org\",",
+ " \"boot-file-name\": \"bootfile.efi\",",
+ " \"host-id\": 0",
+ " }",
+ "},",
+ "{",
+ " \"command\": \"cache-insert\",",
+ " \"arguments\": {",
+ " \"hw-address\": \"01:02:03:04:05:06\",",
+ " \"subnet-id4\": 0,",
+ " \"subnet-id6\": 6,",
+ " \"ip-addresses\": [ \"2001:db8::cafe:babe\" ],",
+ " \"prefixes\": [ \"2001:db8:dead:beef::/64\" ],",
+ " \"hostname\": \"\",",
+ " \"client-classes4\": [ ],",
+ " \"client-classes6\": [ ],",
+ " \"option-data4\": [ ],",
+ " \"option-data6\": [ ],",
+ " \"next-server\": \"0.0.0.0\",",
+ " \"server-hostname\": \"\",",
+ " \"boot-file-name\": \"\",",
+ " \"host-id\": 0",
+ " }",
+ "}"
+ ],
+ "description": "See <xref linkend=\"host-reservation-v4\"/>",
+ "hook": "host_cache",
+ "name": "cache-insert",
+ "support": [
+ "kea-dhcp4",
+ "kea-dhcp6"
+ ]
+}