Delphix Products

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

    Posted 05-05-2016 07:10:00 AM

    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


  • 2.  RE: How to determine the total number of clusters from a REST Reponse

    Posted 05-05-2016 08:39:00 AM
    Potentially, yes. What was the REST Query you used? The "total" object in your REST response is the number of objects returned from the query.


  • 3.  RE: How to determine the total number of clusters from a REST Reponse

    Posted 05-05-2016 12:00:00 PM
    GET /resources/json/delphix/environment/oracle/clusternode


  • 4.  RE: How to determine the total number of clusters from a REST Reponse
    Best Answer

    Posted 05-05-2016 12:34:00 PM
    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).