Start & Stop VDb via API

  • 0
  • 1
  • Problem
  • Updated 10 months ago
  • Solved

Hi All,

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

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

Photo of Anusha Gadiraju

Anusha Gadiraju

  • 92 Points 75 badge 2x thumb
  • Need this urgent

Posted 12 months ago

  • 0
  • 1
Photo of Mouhssine SAIDI

Mouhssine SAIDI

  • 4,782 Points 4k badge 2x thumb

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



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

Photo of Scott MacDonald

Scott MacDonald, Staff Engineer

  • 2,522 Points 2k badge 2x thumb
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?


I used h script under, which has all the above three. But still not able to get through

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;} {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.