Here’s a sample POST request that downloads the health check report. The request downloads the health check report for General Nodes 107 and 120, which are specified in an XML file named HealthCheckDownload.xml. The request is made using a system-level user account that includes the administrator role.
Request body in XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<healthCheckDownload>
<nodes>107,120</nodes>
<content>HCR</content>
</healthCheckDownload>
Request with cURL command line
curl -X POST -T HealthCheckDownload.xml -H "Content-Type: application/xml" -k -b hcp-api-auth="HCP ZGVa3b9c17d52107f34fhdb83c7a5" https://admin.hcp.example.com:9090/mapi/healthCheckReport/download
Request headers
POST /mapi/healthCheckReport/download HTTP/1.1
Host: admin.hcp.example.com:9090
Authorization: HCP ZGVa3b9c17d52107f34fhdb83c7a5
Response headers
HTTP/1.1 200 OK
Content-Type: application/xml
X-HCP-SoftwareVersion: 9.0.0.2
Content-Length: 575
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.