From: Marcin Siodelski Date: Mon, 15 Jul 2019 17:02:57 +0000 (+0200) Subject: [#643,!421] Updated API doc for remote global option commands. X-Git-Tag: Kea-1.6.0-beta2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c520fba72bbebfd560221f77e73ef04814ee2769;p=thirdparty%2Fkea.git [#643,!421] Updated API doc for remote global option commands. --- diff --git a/doc/api/remote-option-def4-del.json b/doc/api/remote-option-def4-del.json index 39051a973d..2c2e3d24c8 100644 --- a/doc/api/remote-option-def4-del.json +++ b/doc/api/remote-option-def4-del.json @@ -17,7 +17,7 @@ \"server-tags\": [ ] } }", - "cmd-comment": "This command includes a list with exactly one option definition specification comprising an option name and code. Specifying an empty list, a value of null or multiple server tags will result in an error.", + "cmd-comment": "This command includes a list with exactly one option definition specification comprising an option name and code. The server-tags list is mandatory and it must contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error.", "resp-syntax": "{ \"result\": 0, \"text\": \"1 DHCPv4 option definition(s) deleted.\", diff --git a/doc/api/remote-option-def6-del.json b/doc/api/remote-option-def6-del.json index fc0f327acf..a5209ef8e5 100644 --- a/doc/api/remote-option-def6-del.json +++ b/doc/api/remote-option-def6-del.json @@ -17,7 +17,7 @@ \"server-tags\": [ ] } }", - "cmd-comment": "This command includes a list with exactly one option definition specification comprising an option name and code. Specifying an empty list, a value of null or multiple server tags will result in an error.", + "cmd-comment": "This command includes a list with exactly one option definition specification comprising an option name and code. The server-tags list is mandatory and it must contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error.", "resp-syntax": "{ \"result\": 0, \"text\": \"1 DHCPv6 option definition(s) deleted.\", diff --git a/doc/api/remote-option4-global-del.json b/doc/api/remote-option4-global-del.json index 9be9ad2d86..673532b1f5 100644 --- a/doc/api/remote-option4-global-del.json +++ b/doc/api/remote-option4-global-del.json @@ -15,10 +15,11 @@ ], \"remote\": { - } + }, + \"server-tags\": [ ] } }", - "cmd-comment": "This command includes a list with exactly one option specification comprising an option name and code.", + "cmd-comment": "This command includes a list with exactly one option specification comprising an option name and code. Specifying an empty list, a value of null or multiple server tags will result in an error.", "resp-syntax": "{ \"result\": 0, \"text\": \"1 DHCPv4 option(s) deleted.\", diff --git a/doc/api/remote-option4-global-get-all.json b/doc/api/remote-option4-global-get-all.json index db75efd989..696c36ad96 100644 --- a/doc/api/remote-option4-global-get-all.json +++ b/doc/api/remote-option4-global-get-all.json @@ -9,10 +9,11 @@ \"arguments\": { \"remote\": { - } + }, + \"server-tags\": [ ] } }", - "cmd-comment": "This command takes no arguments besides the optional remote map.", + "cmd-comment": "The server-tags list is mandatory and it must contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error. The special server tag \"all\" is allowed to fetch the global options shared by all servers.", "resp-syntax": "{ \"result\": 0, \"text\": \"2 DHCPv4 option(s) found.\", @@ -21,18 +22,18 @@ { , \"metadata\": { - \"server-tag\": + \"server-tags\": [ ] } }, { , \"metadata\": { - \"server-tag\": + \"server-tags\": [ ] } } ], \"count\": 2 } }", - "resp-comment": "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." + "resp-comment": "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. If the server tag \"all\" is included in the command, the response contains the global options shared between all servers. It excludes server specific global options. If an explicit server tag is included in the command, the response contains all global options directly associated with the given server and the options associated with all servers when server specific options are not present." } diff --git a/doc/api/remote-option4-global-get.json b/doc/api/remote-option4-global-get.json index 4ceedb693b..78c71027d4 100644 --- a/doc/api/remote-option4-global-get.json +++ b/doc/api/remote-option4-global-get.json @@ -15,9 +15,10 @@ ], \"remote\": { - } + }, + \"server-tags\": [ ] }", - "cmd-comment": "The option is identified by the pair of option code/space values.", + "cmd-comment": "The option is identified by the pair of option code/space values. The server-tags list is mandatory and it must contain exactly one server tag. Specifying an empty list, a value of null or multiple server tags will result in an error. The server tag \"all\" is allowed to fetch the global option instance shared by all servers.", "resp-syntax": "{ \"result\": 0, \"text\": \"DHCPv4 option in found.\", @@ -26,11 +27,11 @@ {