Does Delphix support REWIND APi ? If 'NO' how to over come this ? Need urgent inputs please

  • 2
  • 1
  • Question
  • Updated 3 years ago
  • Answered
Does Delphix support REWIND APi ? I
If 'NO'  how to over come this ? Need urgent inputs please...
Photo of K J M RAO

K J M RAO

  • 440 Points 250 badge 2x thumb

Posted 3 years ago

  • 2
  • 1
Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb
Hi K J M,

in general, what you can do via web GUI console is what you can do via REST API. And what you can't do via GUI console, maybe you could do via REST API ;-)

So, thanks to the above rule, the rewind operation is of course in the REST API.

The rewind operation is called "rollback". You can see the web api docs through your Delphix Engine: http(s)://[ip_address]/api

There you'll find the docs for the rollback operation under database, object operations

Anyway, I'd post you an example on my test environment:
=== POST /resources/json/delphix/database/ORACLE_DB_CONTAINER-5/rollback ==={
    "type": "OracleRollbackParameters",
    "timeflowPointParameters": {
        "type": "TimeflowPointSemantic",
        "container": "ORACLE_DB_CONTAINER-5",
        "location": "LATEST_SNAPSHOT"
    }
}

As you can see, the timeflowPointParameters in the body message is the same you have to use with refresh operation. So you can look for refresh operation in the online cookbook too (it follows the same logic).

Regards.
Gianpiero
Photo of K J M RAO

K J M RAO

  • 440 Points 250 badge 2x thumb
Thanks Gianpiero !!!! will try and update you .
Photo of K J M RAO

K J M RAO

  • 440 Points 250 badge 2x thumb
Thanks Gianpiero !! its working  :)
Photo of K J M RAO

K J M RAO

  • 440 Points 250 badge 2x thumb

Hi Gianpiero,

one quick question : How to kill the API SESSION through Java code  once the task is completed.

Please share your suggestion/inputs...


Thanks,

KJM Rao



Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb
Photo of K J M RAO

K J M RAO

  • 440 Points 250 badge 2x thumb
Thanks Gianpiero for the prompt response !!!