CLI REST-API

import

import [option] [file]
The "import" command reads a previously exported configuration data structure into
the system configuration.

This allows you to restore your configuration from a backup that has been previously
generated with the "export" command. It also can be used to set a large number of
configuration parameters in one step, using an editor or 3rd party utility to generate
the configuration data.

"import" can generate the configuration data in different output formats.

The formatted data is either read from a specified file ([file]) or, if no file
is specified, from standard input. Enter "EOF" on a separate line to indicate that
the end of the to-be imported configuration data has been reached.
NameValueDescriptionExample
xmlexpect the configuration in XML format
jsontry JSON as the import format for the configuration data
file
See also:
export: exports all objects.

REST-API Support:


This command is supported by the REST API:

Method: PUT
URL: /api/import

Example using curl:
curl -X PUT /api/import