Import Server Configuration
Imports/exports the server configuration. The exported file is available as an attachment with MIME type application/zip. To perform an export request, an empty file must be attached to the request. Otherwise, the server tries to import a configuration.
The format of the exported or imported file is same as that of files exported or imported by using the Orchestrator configuration interface. The configuration binary content must be available as multi-part content (see RFC-2387 for details). Details of working with multi-part resources depend on the used client HTTP/REST library. For example, in Spring it will look like:
Sample client code that imports a server configuration:
-----------------------
MultiValueMapparts = new LinkedMultiValueMap ();
parts.add("file", new FileSystemResource("/path/to/vco_config_file.zip"))
;parts.add("password", "secret")
;parts.add("importIdentity", Boolean.FALSE);
getRestTemplate().postForEntity(" https://localhost:8281/vco/api/server-configuration", parts, Void.class);
-----------------------
password
importIdentity
isUpgradeBackup
The request is successful.
Request is not valid (validation error).
User is not authenticated.
User is not authorized.