{
    "access": "read",
    "avail": "1.6.0",
    "brief": [
        "This command fetches a global DHCPv4 option for the server from the specified database."
    ],
    "cmd-comment": [
        "The option is identified by the pair of option code/space values, and as of Kea 3.1, an optional client-classes parameter (see :ref:`cb-cmds-option-class-tags-as-keys`). The ``server-tags`` list is mandatory and 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."
    ],
    "cmd-syntax": [
        "{",
        "    \"command\": \"remote-option4-global-get\",",
        "    \"arguments\": {",
        "        \"options\": [",
        "            {",
        "                \"code\": <option code>,",
        "                \"space\": <option space>,",
        "                \"client-classes\": [ <zero or more comma-separated strings> ]",
        "            }",
        "        ],",
        "        \"remote\": {",
        "            <specification of the database to connect to>",
        "        },",
        "        \"server-tags\": [ <single server tag as string> ]",
        "    }",
        "}"
    ],
    "hook": "cb_cmds",
    "name": "remote-option4-global-get",
    "resp-comment": [
        "The metadata is included and provides database specific information associated with the returned object. If the \"all\" server tag is specified, the command fetches the global option associated with all servers. If the explicit server tag is specified, the command fetches the global option associated with the given server. If the server specific option does not exist, it fetches the option associated with all servers."
    ],
    "resp-syntax": [
        "{",
        "    \"result\": 0,",
        "    \"text\": \"DHCPv4 option is found.\",",
        "    \"arguments\": {",
        "        \"options\": [",
        "            {",
        "                <option information>,",
        "                \"metadata\": {",
        "                    \"server-tags\": [ <server tag> ]",
        "                }",
        "            }",
        "        ]",
        "    }",
        "}"
    ],
    "support": [
        "kea-dhcp4"
    ]
}
