This is an example of how to Import/Export configurations from the Domain Admin by calling Ambience Server API.
Prerequisites:
// Have Domain Admin User Rights
1. Export Domain Configurations
API Structure:
[protocol] :[host] :[port] /elx/dm/[domain] /vivace/export-content/For example,
http://localhost:8080/elx/dm/eno/vivace/export-content/CURL command to Download Configurations:
curl --verbose -X POST -H "Authorization: Basic [Base64-Encoded-Credentials]" --cookie [name]=[value] http://localhost:8080/elx/dm/eno/vivace/export-content/ --output eno.xml
or
curl --verbose -X POST --basic --user [Username]:[Password] --cookie [name]=[value] http://localhost:8080/elx/dm/eno/vivace/export-content/ --output eno.xml
2. Import Domain Configurations
API Structure:
[protocol] :[host] :[port] /elx/dm/[domain] /vivace/import-content/For example,
http://localhost:8080/elx/dm/eno/vivace/import-content/CURL command to upload Configurations:
curl --verbose -X POST -H "Authorization: Basic [Base64-Encoded-Credentials]" --cookie [name]=[value] --form file=@[Path-to-File] http://localhost:8080/elx/dm/eno/vivace/import-content/
or
curl --verbose -X POST --basic --user [Username]:[Password] --cookie [name]=[value] --form file=@[Path-to-File] http://localhost:8080/elx/dm/eno/vivace/import-content/