How to determine the total number of clusters from a REST Reponse

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
  • (Edited)

How to determine  the total number of clusters from a  REST Reponse. Please find the sampe logs for your reference.


{
   "status": "OK",
   "result":    [
            {
         "type": "OracleClusterNode",
         "reference": "ORACLE_CLUSTER_NODE-3",
         "namespace": null,
         "name": "xyxe",
         "cluster": "ORACLE_CLUSTER-3",
         "host": "UNIX_HOST-5",
         "virtualIPs": [         {
            "type": "OracleVirtualIP",
            "ip": "10.10.10.11",
            "domainName": "xyzevp",
            "discovered": true
         }],
         "discovered": true,
         "enabled": true
      },
            {
         "type": "OracleClusterNode",
         "reference": "ORACLE_CLUSTER_NODE-5",
         "namespace": null,
         "name": "xyzg",
         "cluster": "ORACLE_CLUSTER-3",
         "host": "UNIX_HOST-6",
         "virtualIPs": [         {
            "type": "OracleVirtualIP",
            "ip": "10.10.10.10",
            "domainName": "xyzgvp",
            "discovered": true
         }],
         "discovered": true,
         "enabled": true
      }
   ],
   "job": null,
   "action": null,
   "total": 2,
   "overflow": false
}


Can I depend on the attribute  "total": 2 to determine the no of clusters.

Photo of Ramesh

Ramesh

  • 518 Points 500 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,420 Points 10k badge 2x thumb
Official Response
Then that would be the complete list of oracle clusters that Delphix has detected for that environment. The total would be the number of clusters in that list (2).