summaryrefslogtreecommitdiffstats
path: root/src/share/api/subnet4-update.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/api/subnet4-update.json')
-rw-r--r--src/share/api/subnet4-update.json39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/share/api/subnet4-update.json b/src/share/api/subnet4-update.json
new file mode 100644
index 0000000..f131b9e
--- /dev/null
+++ b/src/share/api/subnet4-update.json
@@ -0,0 +1,39 @@
+{
+ "access": "write",
+ "avail": "1.6.0",
+ "brief": [
+ "This command updates (overwrites) a single subnet in the existing server configuration. This operation has no impact on other subnets."
+ ],
+ "cmd-syntax": [
+ "{",
+ " \"command\": \"subnet4-update\",",
+ " \"arguments\": {",
+ " \"subnet4\": [ {",
+ " \"id\": 123,",
+ " \"subnet\": \"10.20.30.0/24\",",
+ " ...",
+ " } ]",
+ " }",
+ "}"
+ ],
+ "description": "See <xref linkend=\"idp69\"/>",
+ "hook": "subnet_cmds",
+ "name": "subnet4-update",
+ "resp-syntax": [
+ "{",
+ " \"result\": 0,",
+ " \"text\": \"IPv4 subnet updated\",",
+ " \"arguments\": {",
+ " \"subnets\": [",
+ " {",
+ " \"id\": 123,",
+ " \"subnet\": \"10.20.30.0/24\"",
+ " }",
+ " ]",
+ " }",
+ "}"
+ ],
+ "support": [
+ "kea-dhcp4"
+ ]
+}