HP Insight Control Server Provisioning 7.2 Administrator Guide
Content-Type: application/json
Via: 1.1 cic.dns.hp
cache-control: no-cache
Transfer-Encoding: chunked
{"sessionID":"<user-authorization-token>"}
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.
5.1.2 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.
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 invoke cURL as follows and will see the associated response shown below:
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.
5.1.3 REST call to enable or disable support access
In addition to being able to enable or disable HP Support access to your Insight Control server
provisioning appliance via the UI (on the Settings page select Actions→Edit HP support access) ,
5.1 REST APIs to enable HP Support access or add a server via iLO 35