HP Insight Control Server Provisioning 7.3 Update 1 Administrator Guide

A list of the components of the REST call to download the support dump is shown below:
DescriptionREST component
https://<appliance-hostname-or-address>/rest/appliance/support-dumps/
<support-dump-filename>
URL:
where you supply <appliance-hostname-or-address> and
<support-dump-filename> is obtained by the previous call to create the support dump.
GETMessage Type:
accept: application/jsonHTTP Headers:
content-type: application/json
As the GET message will retrieve the encrypted support dump, you will want to redirect the output
to a <output-support-dump-file> using the “-o” option.
cURL common on Linux and Windows:
curl -i -k -X GET https://<appliance-hostname-or-address>/rest/appliance/support-dumps/
<support-dump-filename> -o <output-support-dump-file>
If the request fails, you will be returned an error diagnostic. Common errors are HTTP error 404
not found if the URL is not correct.
REST APIs to enable support access or add a server via iLO
REST calls to enable/disable support services access or to add a server via iLO require three REST
calls. The first call sets up a user session and generates an authentication token (see “REST call to
create the user session and get the authentication token” (page 99)) and the second REST call
enables/disables services access or adds a server via iLO. Finally, the user session needs to be
ended with a REST call for logging out (see “REST call to logout of the user session” (page 100).
For the purposes of this discussion we use the open-source cURL utility to make the REST calls. The
cURL open-source project is located at: http://curl.haxx.se/. You can invoke cURL from a command
line on either Linux or Windows.
Each REST call is an HTTP request and associated response. The request includes the URL, message
type, HTTP headers, request body, and response body.
REST call to enable or disable support access
In addition to enabling or disabling support access to your Insight Control server provisioning
appliance via the UI (on the Settings page select ActionsAuthorized support access) , you can
also accomplish this programmatically. This alternate approach is valuable if the appliance user
interface is unresponsive and you need to enable support access for diagnosing a problem.
Programmatically, one needs to make three REST calls to the Insight Control server provisioning
appliance. The first call sets up a user session, while the second call enables or disables support
access to the appliance. Finally, the third call logs out of the session
See “REST call to create the user session and get the authentication token” (page 99) for details
on making the first REST call.
The second REST call enables or disables support access to the appliance. In this REST call you
will need to provide the <user-authentication-token> you received from the first login
REST call, and you will need to pass either true or false to indicate whether you want to enable
services access.
Finally, see“REST call to logout of the user session” (page 100) for details on making the third REST
call to logout of the user session.
REST APIs to enable support access or add a server via iLO 105