API/Python/Open-Source Solutions

Expand all | Collapse all

Start & Stop VDb via API

Jump to Best Answer
  • 1.  Start & Stop VDb via API

    Posted 11-21-2017 04:50:00 AM

    Hi All,

    I tried to run the API call under to start & shut the VDb

    https://docs.delphix.com/pages/viewpage.action?pageId=60492371" href="https://docs.delphix.com/pages/viewpage.action?pageId=60492371">https://docs.delphix.com/pages/viewpage.action?pageId=60492371

    Note: have changed the URL for the engine as per my project

    The log gave me a message API session is not established. Please advice



  • 2.  RE: Start & Stop VDb via API

    Posted 11-21-2017 05:15:00 AM
    Hi, This means that you didn’t get a cookie session, did you set you engine ip as DE var in script and also set VDB var to conform your environment Regards, Mouhssine


  • 3.  RE: Start & Stop VDb via API
    Best Answer

    Posted 11-21-2017 08:07:00 AM
    Hi Anusha,

    API calls require an authenticated session, the page you linked to shows this, in that there are a series of calls to curl:

    1. Create session.
    2. Authenticate.
    3. Run command or commands.

    Are you running all 3 above steps, or just trying the Start/Stop command on it's own?

    Regards,

    Scott.


  • 4.  RE: Start & Stop VDb via API

    Posted 01-08-2018 09:46:00 AM

    Hi Mouhssine,


    yes have set the DE and VDb value.


    I started my script as ./<Script_Name> start, but it is not giving any log now.


    used the script https://docs.delphix.com/pages/viewpage.action?pageId=60492371



  • 5.  RE: Start & Stop VDb via API

    Posted 01-08-2018 09:47:00 AM
    I used h script under https://docs.delphix.com/pages/viewpage.action?pageId=60492371, which has all the above three. But still not able to get through


  • 6.  RE: Start & Stop VDb via API

    Posted 01-08-2018 10:19:00 AM

    got this error while testing the authentication

    <!DOCTYPE html><html><head><title>Apache Tomcat/8.0.36 - Error report</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 403 - Use /resources/json/delphix/login to log in first</h1><div class="line"></div><p><b>type</b> Status report</p><p><b>message</b> <u>Use /resources/json/delphix/login to log in first</u></p><p><b>description</b> <u>Access to the specified resource has been forbidden.