HP Insight Control Server Provisioning 7.3 Update 1 Administrator Guide

DescriptionREST component
noneRequest Body:
{"type":"OsdPaginatedCollection",
"members":[ {
Response Body:
"status":"error",
"jobUserName":"administrator",
"nameOfJobType":"ProLiant OS - Windows 2008 R2 SP1 Standard x64 Scripted
Install",
"running":"false",
"jobProgress":null,
"jobResult":[{
"jobServerUri":"/rest/os-deployment-servers/70001",
"jobResultCompletedSteps":1,
"jobResultTotalSteps":16,
"jobResultLogDetails":"Running OS Build Plan ProLiant OS - Windows
2008 R2 SP1 Standard x64 Scripted Install (OSBuildPlanRef:170001)
against server (ServerRef:70001)\n\nStep 1 of 16: Run OGFS Script
'Validate Custom Attributes'\nStep 2 of 16: Run OGFS Script 'Check iLO
Service'\nFailed To check iLO service: Server model VMWARE
VIRTUAL PLATFORM, manufacturer VMWARE, INC. does not support
iLO\n\nCheck iLO Service failed with exit code 120.\n",
"jobResultErrorDetails":"",
"jobMessage":"Check iLO Service failed with exit code 120."
}],
"typeOfJobType":"BP",
"uriOfJobType":"/rest/os-deployment-build-plans/170001",
"jobDeviceGroups":[], "jobServerInfo":[{
"serverName":"localhost-VMware-VMware Virtual Platform-70001",
"jobServerInclusionStatus":"INCLUDED_INCLUSION_STATUS",
"jobStatusOnServer":"FAILURE_STATUS",
"jobServerUri":"/rest/os-deployment-servers/70001",
"deviceType":"os-deployment-servers"
}],
"name":"ProLiant OS - Windows 2008 R2 SP1 Standard x64 Scripted Install",
"state":"STATUS_FAILURE",
"description":"Run OS Build Plan",
"uri":"/rest/os-deployment-jobs/690001",
"category":null,
"created":"2013-08-22T19:09:38.000Z",
"modified":"2013-08-22T19:09:55.000Z",
"eTag":"2013-08-22T19:09:55.000Z"
}],
"count":1,
"total":1,
"start":0,
"prevPageUri":null,
"nextPageUri":null,
"uri":null,
"category":null,
"created":null,
"modified":null,
"eTag":null }
This example data shows a single job which has failed (status”:”error”) and the job logs
are contained in the body of the “jobResult” field.
You invoke cURL as follows and will see the associated response shown below:
cURL command on Linux or Windows:
curl -i -k -X GET
-H "auth: <user-authorization-token>" -H "accept:application/json" -H "accept-language:en-us"
https://<appliance-hostname-or-address>/rest/os-deployment-jobs
Response on success:
110 Advanced topics