API/Python/Open-Source Solutions

Expand all | Collapse all

Cancel API

Jump to Best Answer
  • 1.  Cancel API

    Posted 08-24-2016 02:37:00 PM

    I am doing a Data Rewind operation via REST API and getting a JOB ID (eg; 100) and doing a Cancel operation via REST API with the same JOB ID and I am getting the following response. GET /resources/json/delphix/action/ACTION-61381. If I track the generated JOB ID (eg: 100) it says that canceled, but in the Delphi GUI I am able to see new jobs have been trigerred as a result of Cancel Operation. How to track the new jobid from the API due to Cancel Operation


    #DemoEnvironment


  • 2.  RE: Cancel API
    Best Answer

    Posted 08-24-2016 03:40:00 PM
    Unfortunately there isn't an API which directly presents that information. Each JOB has a target, so you could query the JOBs API for a given target and find the most recent job in the list

    GET /resources/json/delphix/job?target=JS_DATA_CONTAINER-<ID>




  • 3.  RE: Cancel API

    Posted 08-26-2016 08:59:00 AM
    I am developing a portal where it will interact with Delphix via REST Interface. I am giving an option to the users if they mistakenly did a create vdb/rewind vdb/refresh vdb they can use the option of cancel where the portal will carry out the operation via CANCEL REST API. The challenge is once the user did the cancel, they might not be know when the cancel operation will get completed so that they can place the next operation. Since we are not allowing the user to access delphix. In that case we need to build a logic from the portal to determine the status of cancel operation.


  • 4.  RE: Cancel API

    Posted 08-26-2016 12:18:00 PM
    I understand this is not ideal, but after the CANCEL API request has completed, you should list the jobs by target (as shown above) and wait for all these jobs to complete.