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.
#DemoEnvironment#Tip