APIPythonOpen-Source Solutions

  • 1.  How to set properties via REST API

    Posted 09-06-2016 08:16:00 AM

    How to add the properties via REST API as separate call assume that properties were not set during the container/template creation.

    https://d2r1vs3d9006ap.cloudfront.net/s3_images/1479426/RackMultipart20160906-57543-d7ubjq-Properties_inline.png?1473152997" src="https://higherlogicdownload.s3.amazonaws.com/DELPHIX/UploadedImages/4ac0fc040e0a4272ba87d17211111b4b_RackMultipart20160906-57543-d7ubjq-Properties_inline.png">


    #DemoEnvironment


  • 2.  RE: How to set properties via REST API
    Best Answer

    Posted 09-06-2016 12:25:00 PM

    Hello Ramesh,

                        Below are the API calls to set properties after container/template creation.

    For container:

    POST /resources/json/delphix/jetstream/container/JS_DATA_CONTAINER-104

    {

        "type": "JSDataContainer",

        "properties": {

            "dbcontainer": "ORACLE_DB_CONTAINER-61",

            "vdbname": "vMUATS2"

        }

    }

    For template:

    POST /resources/json/delphix/jetstream/template/JS_DATA_TEMPLATE-13

    {

        "type": "JSDataTemplate",

        "properties": {

            "template": "template1",

            "templatename": "vtemp"

        }

    }


    You can add as many properties, as you want under properties list, separated by comma in above format.