APIPythonOpen-Source Solutions

  • 1.  Is there API available to add environments?

    Posted 02-09-2018 12:32:00 PM
    I was going through Delphix 5.1.9 documentation and could not find any API for the same. If available, kindly provide the link. Thanks in advance.
    #DemoEnvironment
    #Virtualization


  • 2.  RE: Is there API available to add environments?

    Posted 02-09-2018 12:40:00 PM
    Hello Anshul,
                       Here is the link to Delphix 5.1 API. You will find under "Reference" section of Delphix documentation.

    https://docs.delphix.com/docs51/reference/web-service-api-guide

    ~Thanks


  • 3.  RE: Is there API available to add environments?
    Best Answer

    Posted 02-09-2018 12:42:00 PM
    The rest api docs for the 5.2.0
    The API should be the same.
    You can get the list of the API on your Engine installation at the http://[ip]/api

    I suggest you also the dxtoolkit (a conveninet wrapper): 
    https://github.com/delphix/dxtoolkit

    https://github.com/delphix/dxtoolkit/releases

    Best Regards
    Gianpiero




  • 4.  RE: Is there API available to add environments?

    Posted 02-09-2018 12:45:00 PM
    Hi,

    Sample code to customize and add after creating session and login to the engine

    curl -X POST -k --data @- ${BaseURL}/environment -b "${COOKIE}" -H "${CONTENT_TYPE}" <<EOF{ "type": "HostEnvironmentCreateParameters", "primaryUser": { "type": "EnvironmentUser", "name": "delphix", "credential": { "type": "PasswordCredential", "password": "delphix" } }, "hostEnvironment": { "type": "UnixHostEnvironment", "name": "Linux Host" }, "hostParameters": { "type": "UnixHostCreateParameters", "host": { "type": "UnixHost", "address": "172.16.160.133", "toolkitPath": "/var/opt/delphix/toolkit" } }}EOF

    Regards,

    Mouhssine