Retrieve Health Test Results
To find the results of a health test, you retrieve a list of all configurations, query for an execution of a particular configuration, then query for the individual results of that execution.
This example shows how to retrieve results for the latest execution of a health test configuration. You can also retrieve results for tests executed at a different time.
Prerequisites
- Log in to vRealize Automation as a system administrator and a tenant administrator. In addition, the tenant administrator must have fabric administrator permissions to use the health broker proxy server.
- Verify that the appliance name and fully qualified domain name of the vRealize Automation instance are available.
- Verify that you have a valid HTTP bearer token that matches your login credentials. See REST API Authentication.
Procedure
Results
Detailed test results output in a textual representation facilitate programmatic post-processing. In cases where a check fails, a message describing the failure appears in the output.
{ "testMethod": { "name": "vRealize Automation Node Common Name Certificate Check", "description": "This test case verifies that the vRA node certificate Common names match that of it's server. This test is most useful for distributed/HA environments.", "descriptionType": "text", "severity": "CRITICAL", "methodName": "areVraNodeCertsCommonNameValid", "accessLevel": "INFRASTRUCTURE", "enabled": false, "configurationReferences": [] }, "startTime": "1478213951731", "endTime": "1478213960684", "state": "FAILED", "message": "Not all checks were successful. See the following errors for more details: \njava.io.IOException: Unable to get the certificate of your server [cava-pn-210-066.eng.vmware.com:443]. Please confirm configuration information. The returned exception is: [java.net.UnknownHostException: cava-pn-210-066.eng.vmware.com] \n", "remediationType": "html", "remediation": "http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2106583", "overallResultsLink": "/health/result/overall-results/Report_vRA_20161103-22.59.03.0373", }