Summary:
Populate the configuration of a config set from a local server. This is two RESTful API calls combined.
URL:
http(s)://{server hostname}/api/cfg/serverConfig?{parameter=true}&{parameter=true}&{parameter=true} | cfg/serverConfig/{serverGroupId}
Methods summary
- GET Method - lists the parameters from the local server with which to populate a config set; and POST Method - add these parameters to a specified config set.
GET and POST Methods detail
Request:
In the GET call, specify parameters e.g. includeUsers=true, includeViews=true, that you wish to then POST to the specified config set.
Response:
When GET call is made, the output is the config definition. This can then be added to the call to specify the config on a config set.
Example:
INPUT
curl -u admin:admin https://localhost/api/cfg/serverConfig?includeUsers=true&includeUserGroups=true&includeViews=true&includePasswords=true | curl -u admin:admin https://localhost/api/cfg/serverGroupConfig/82e7c418-cd48-4fbf-857b-cddb475841a2/ -X POST -H "content-type:application/json" -d @-
OUTPUT
[config set definition]
Comments
0 comments
Please sign in to leave a comment.