HP Insight Control Server Provisioning 7.3 Update 1 Administrator Guide

If the request fails, you will be returned an error diagnostics. Common errors are HTTP error 404
not found, if the URL is not correct, or an exception if the user/password is not correct.
REST call to logout of the user session
The REST call to logout of the user session requires you to pass the user-authorization-token as
shown in the following table.
DescriptionREST component
https://<appliance-hostname-or-address>/rest/login-sessions?action=logout
where you supply <appliance-hostname-or-address>
URL:
DELETEMessage Type:
accept: application/jsonHTTP Headers:
content-type: application/json
accept-language: en-us (optional)
auth: <user-authorization-token>
where you supply <user-authorization-token>
NoneRequest Body:
None
If logout was successful
Response Body:
You can invoke cURL with the following associated responses:
cURL command on Linux:
curl -i -k -H "accept: application/json" -H "content-type: application/json"
-H "accept-language: en-us" -H "auth: <user-authorization-token>" -X DELETE
https://<appliance-hostname-or-address>/rest/login-sessions?action=logout
cURL command on Windows:
curl -i -k -H "accept: application/json" -H "content-type: application/json"
-H "accept-language: en-us" -H "auth: <user-authorization-token>" -X DELETE
https://<appliance-hostname-or-address>/rest/login-sessions?action=logout
Response on success:
HTTP/1.1 204 No Content
Date: Wed, 20 Feb 2013 15:36:40 GMT
Via: 1.1 cic.dns.hp
cache-control: no-cache
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
Response Body: None
If the request fails, you will be returned an error diagnostics. Common errors are HTTP error 404
not found, if the URL is not correct.
REST call to add a server via iLO
You can use REST calls to add a server via its iLO.
Programmatically, one will need to make three REST calls to the Insight Control server provisioning
appliance. The first call is used to obtain an authentication token or session ID, then using this
session ID, you make the REST call to perform the actual registration. Finally, the third call logs out
of the session.
100 Advanced topics