APIPythonOpen-Source Solutions

  • 1.  What are the parameters that defines the target host in provisioning API?

    Posted 04-10-2018 01:10:00 PM
    curl -X POST -k --data @- http://delphix1.company.com/resources/json/delphix/database/provision \
    -b cookies.txt -H "Content-Type: application/json" <<EOF
    {
    "container": {
    "group": "GROUP-2",
    "name": "EGVDB",
    "type": "OracleDatabaseContainer"
    },
    "source": {
    "type": "OracleVirtualSource",
    "mountBase": "/mnt/provision",
    "allowAutoVDBRestartOnHostReboot": true
    },
    "sourceConfig": {
    "type": "OracleSIConfig",
    "databaseName": "EGVDB",
    "uniqueName": "EGVDB",
    "repository": "ORACLE_INSTALL-3",
    "instance": {
    "type": "OracleInstance",
    "instanceName": "EGVDB",
    "instanceNumber": 1
    }
    },
    "timeflowPointParameters": {
    "type": "TimeflowPointLocation",
    "timeflow": "ORACLE_TIMEFLOW-123",
    "location": "3043123"
    },
    "type": "OracleProvisionParameters"

    EOF

    In the above given API:

    container: Is it the details of target container or source container?
    source: Is it the details of target host or source db?
    sourceConfig: Is it the details of target host container or source db?
    timeflowPointParameters: These are the details of source snapshot.


    #Virtualization


  • 2.  RE: What are the parameters that defines the target host in provisioning API?
    Best Answer

    Posted 04-10-2018 01:17:00 PM
    Hi,

    Container, source and sourceConfig are covering a definition of target - so a new created VDB.
    timeflowPointParameters is a point it time of partent database used for provisioning - database is defined by timeflow reference and location is showing a SCN used for provisioning.

    Hope it helps.

    regards,
    Marcin


  • 3.  RE: What are the parameters that defines the target host in provisioning API?

    Posted 04-11-2018 03:22:00 AM
    Below link helps understanding the parameters in detail. If you have not tried this, please have a look at the API specs. http://<delphixserver>/api/#ProvisionParameters


  • 4.  RE: What are the parameters that defines the target host in provisioning API?

    Posted 04-11-2018 05:03:00 AM
    Asking again for clarification,  in the Source, SourceConfig, and Container I should pass parameters of the target host in which I want to set up the VDB?


  • 5.  RE: What are the parameters that defines the target host in provisioning API?

    Posted 04-11-2018 05:33:00 AM
    Also let me know from which APIs can I get inputs for this provisioning API. I am getting timeflowpoint parameters from:
    1) Fetching dSource list : resources/json/delphix/database
    2) Then fetching snapshot list which gives timeflowPontParameters: resources/json/delphix/snapshot

    How will I get inputs for source(group, type,etc), sourceConfig(repository etc)? Which API brings these details for a environment?