Get the Node Health Status
get
                    /console/admin/api/v2/dashboard/statistics/nodeHealth
Get the node health status (up or down).
                
                Request
Supported Media Types
                - application/json
 
Query Parameters
                - 
                        nodeID: string
                        
                        Node ID of a specific peer, orderer, proxy, or the console itself
 
Response
Supported Media Types
                - application/json
 
200 Response
Response with a series of up/down statuses by restriction
                
                
                    400 Response
Invalid arguments
                
                
                    Default Response
Unexpected error
                
                
                    Examples
This endpoint is used to get the health status (up or down) of specified nodes. The result is a JSON body which contains a series of up/down statuses for the specified nodes. If nodeID is not specified, the health of all nodes is returned. Time range is not supported for nodeHealth.
                  
The following example shows how to generate the node health report by submitting a GET request on the REST resource using cURL.
curl -X GET -u username:password -k "http://<rest_server_url>:port/console/admin/api/v2/dashboard/statistics/nodeHealth?nodeID=<nodeID>"
For example,
curl -X GET -u myname@oracle.com:mypswd -k "http://server.oracle.com:10000/console/admin/api/v2/dashboard/statistics/nodeHealth?nodeID=console"
Example of the Response Body
The following example shows the contents of the response body in JSON format:
{
  "data": [
    {
      "nodeId": "console",
      "nodeType": "console",
      "health": {
        "time": "Sun, 24 Feb 2021 06:41:48 GMT",
        "status": "up"
      }
    }
  ]
}