Example: Preparing health check reports for download
Here is a sample POST request that prepares health check reports for download. The request is made using a system-level user account that includes the administrator role.
Request with cURL command line
curl -iX POST -d @HealthCheckPrepare.xml -k -H "Content-type: application/xml" -H "Authorization: HCP YWxscm9sZXM=:04EC9F614D89FF5C7126D32ACB448382" "https://admin.hcp.example.com:9090/mapi/healthCheckReport/prepare"
Request headers
POST /mapi/healthCheckReport/prepare HTTP/1.1 Host: admin.hcp.example.com:9090 Authorization: HCP ZGVa3b9c17d52107f34fhdb83c7a5 Content-Type: application/xml Content-Length: 37
Example: Request body
<healthcheckPrepare> <startDate>09/19/2020</startDate> <endDate>09/21/2020</endDate> <exactTime>04:00</exactTime> <collectCurrent>false</collectCurrent> </healthcheckPrepare>
Response headers
HTTP/1.1 200 OK X-HCP-SoftwareVersion: 9.2.27 Content-Length: 0