Example: Downloading the health check reports

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

Here is a sample POST request that downloads a health check reports archive. The request downloads the reports for HCP nodes 107 and 120, as 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="FL3Z:a3b9c17d52107f34fhdb83c7a5" 
https://admin.hcp.example.com:9090/mapi/healthCheckReport/download --output HCR_LOGS.zip

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.1.0
Content-Length: 575