How to create a VDB using an existing template via API

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
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!
Photo of Patrick

Patrick

  • 82 Points 75 badge 2x thumb
  • happy

Posted 2 years ago

  • 0
  • 1
Photo of Viswas Patnala

Viswas Patnala

  • 512 Points 500 badge 2x thumb
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"

                },

Photo of Patrick

Patrick

  • 82 Points 75 badge 2x thumb
Thanks for your reply!