How to set properties via REST API

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered

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



Photo of Ramesh

Ramesh

  • 518 Points 500 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Jatinder Luthra

Jatinder Luthra, Employee

  • 2,866 Points 2k badge 2x thumb
Official Response

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.

(Edited)