Authentication
To use the nevisAdmin REST API you have to authenticate first. The type of authentication depends on how nevisAdmin has been configured.
There are two options:
Form-based login (default):
POST to /nevisadmin/rest/j_security_check
j_username=<your nevisAdmin user>
j_password=<your password>Certificate-based login:
Use a client certificate which is trusted by nevisAdmin
In both cases nevisAdmin will return a JSESSIONID cookie. You have to send this JSESSIONID cookie in all subsequent requests. For example, when using curl:
Providing a session ID using curl
curl -v -x "" -k --cookie-jar nevisadm.txt --
data 'j_username=admin&j_password=admin' https://<hostname>:8037/nevisadmin/j_security_check
curl -v -x "" -k --cookie-jar nevisadm.txt --cookie nevisadm.txt --header "Accept:
application/json" https://<hostname>:8037/nevisadmin/rest/configuration/environment