API/Python/Open-Source Solutions

Expand all | Collapse all

Does the reference attribute will vary for each cluster.

Jump to Best Answer
  • 1.  Does the reference attribute will vary for each cluster.

    Posted 05-05-2016 01:53:00 PM

    Does the reference attribute will vary for each cluster.

    (GET /resources/json/delphix/repository)

    {
             "type": "OracleInstall",
             "reference": "ORACLE_INSTALL-2",
             "namespace": null,
             "name": "/opt/oracle/product/11.2.0.4/db_1",
             "version": "11.2.0.4.0",
             "linkingEnabled": true,
             "provisioningEnabled": true,
             "environment": "ORACLE_CLUSTER-3",
             "installationHome": "/opt/oracle/product/11.2.0.4/db_1",
             "groupName": "dba",
             "groupId": 13,
             "userName": "oracle",
             "userId": 9,
             "bits": 64,
             "rac": true,
             "discovered": true
          }

    If I have more than one cluster, in that case whether the attribute  "reference": "ORACLE_INSTALL-2" will have different reference or same reference. This reference value is important when I create a VDB using REST API where I will using against repository: POST /resources/json/delphix/database/provision

    sourceConfig": {
                     "type":"OracleRACConfig",
                     "databaseName": "vbd20api",
                     "uniqueName": "vdb20api",
                     "repository": "ORACLE_INSTALL-2",
                     "instances": [{
                                               "type": "OracleRACInstance",
                                               "node": "ORACLE_CLUSTER_NODE-5",
                                              "instanceName": "vdb20api1",
                                              "instanceNumber": 1
                                                    },
                                                                            {
                                               "type": "OracleRACInstance",
                                              "node": "ORACLE_CLUSTER_NODE-3",
                                              "instanceName": "vdb20api2",
                                               "instanceNumber": 2
                                                    }]
                            },

    If I have more than one cluster in that how to construct the above source config schema. Please provide a skeleton structure for more than one cluster.


    Thanks in Advance. I am really happy to see that excellent support from Delphix to solve all the queries. Thank you once again.



    #Tip


  • 2.  RE: Does the reference attribute will vary for each cluster.
    Best Answer

    Posted 05-05-2016 02:24:00 PM
    each object has a unique reference, consider this a UUID in Delphix. 

    http://delphixip/api/#OracleCluster
    I am not sure what you are asking for in your second question. 

    An easy way to figure these things out is to do it via CLI, with tracing enabled

    ssh into the delphix engine as the delphix_admin

    setopt trace=true


    Now provision the VDB via CLI for the scenario you are describing.  The result is you will see the json body that you are asking for in your question. That is how I do it when I have a question about how to use the API and need an example.