API/Python/Open-Source Solutions

Expand all | Collapse all

How to create a VDB using an existing template via API

Jump to Best Answer
  • 1.  How to create a VDB using an existing template via API

    Posted 09-28-2016 07:57:00 PM
    I am looking to create a VDB using a predefined template on the delphix engine. I have reviewed the API Cookbook: Example Provision Of An Oracle VDB and am able to make a VDB from an existing dsource, however I did not come across any documentation that references how to define what template to build the VDB with. Right now I am manually defining the database parameters in the body of the call.

    Following are engine details: 
    Product
     Delphix Engine
    Version
     Delphix Engine 5.0.4.1
    Build Date
     Tue, 26 Jul 2016 21:51:31 GMT

    Thanks in advance for the help!


  • 2.  RE: How to create a VDB using an existing template via API
    Best Answer

    Posted 09-28-2016 08:03:00 PM
    Here is the sample API for your reference. You have to define confiTemplate parameter with pre-defined template name eg: "DATABASE-TEMPLATE-2".
                    "type": "OracleProvisionParameters",

                    "container": {

                                    "type": "OracleDatabaseContainer",

                                    "name": "vdbname",

                                    "group": "GROUP-20"                           

                    },

                    "source": {

                                    "type": "OracleVirtualSource",

                                    "archivelogMode": true,

                                    "configTemplate": "DATABASE_TEMPLATE-2",

                                    "mountBase": "/mnt/delphix"

                    },



  • 3.  RE: How to create a VDB using an existing template via API

    Posted 09-29-2016 12:11:00 PM
    Thanks for your reply!