CLI REST-API

write

write [package] [configset]
The "write" command compares the current contents of all registered configuration
files of a package (or all packages, if "all" is specified as the package name)
with the configuration database of the system and updates the database if
a modification is detected in a file.

If you specify "all" as the package, the complete configuration set
will be loaded. This is also the default if you do not specify any package name.

If no configset name is specified, the "write" command will use "startup", which is
the configset that is loaded automatically during system start.

RESTAPI: The data can be passed in the body like this:
{
    "parameters": {
        "package": "all"
    }
}
NameValueDescriptionExample
packageall
configsetstartup
See also:
diff: shows differences between the system- and the "startup"-configuration set.
read: loads a package configuration from the configuration database.

REST-API Support:


This command is supported by the REST API:

Method: PUT
URL: /api/write
Body:
{
    "parameters": {
        "package": [package]
    }
}

Example using curl:
curl -X PUT /api/write -d 
"{
    \"parameters\": {
        \"package\": \"all\"
    }
}"