APIPythonOpen-Source Solutions

Expand all | Collapse all

Bookmark expiration date

  • 1.  Bookmark expiration date

    Posted 09-26-2016 05:44:00 PM

    I am trying to add expiration dates to the bookmarks created through API but I cannot seem to get it to work. I do not get any errors but the date wont update. Any help is appreciated.

    $update_Exp = "{"type":"JSBookmark","expiration":"2016-09-26T23:59:59.999Z"  }"


    $WebResponse = Invoke-WebRequest -WebSession $myWebSession -Uri "$DX_uri/jetstream/bookmark/$DX_bookmarkid" -Method Post -ContentType "application/json" -Body $update_Exp


    Write-Host $WebResponse


    {"type":"OKResult","status":"OK","result":"","job":null,"action":"ACTION-86929"}



    #DemoEnvironment
    #Masking


  • 2.  RE: Bookmark expiration date
    Best Answer

    Posted 09-26-2016 05:47:00 PM
    Hello Deb,
                    Could you please share version of Delphix Engine you use?


  • 3.  RE: Bookmark expiration date

    Posted 09-26-2016 05:54:00 PM
     Delphix Engine 5.0.3.0


  • 4.  RE: Bookmark expiration date

    Posted 09-26-2016 05:57:00 PM
    Looks like API version is set to lower version.

    Could you try set version to latest, as below before setting expiration date of bookmark?

    VERSION="1.8.0"




  • 5.  RE: Bookmark expiration date

    Posted 09-26-2016 06:01:00 PM
    What version should it work from  ? I currently have 1.7.0


  • 6.  RE: Bookmark expiration date

    Posted 09-26-2016 06:07:00 PM
    Looks like it's working fine for 1.7.0 too.

    Please try to set version manually in script.


  • 7.  RE: Bookmark expiration date

    Posted 09-26-2016 06:18:00 PM

    Its still get the same behavior. Could you share a sample json for the expiration update?? 

    BTW I have been able to update other properties, only the expiration seems to be the issue. 



  • 8.  RE: Bookmark expiration date

    Posted 09-26-2016 06:40:00 PM
    Jatinder, Apologies. it was a version issue. I am able to update the bookmarks with expiration date


  • 9.  RE: Bookmark expiration date
    Best Answer

    Posted 09-26-2016 06:40:00 PM
    Hello Deb,
                  I just tried updating expiration date with version 1.7.0. It worked fine.

    Below is api call I used.

    POST /resources/json/delphix/jetstream/bookmark/JS_BOOKMARK-83

    {

        "type": "JSBookmark",

        "expiration": "2016-09-29T10:00:00.000Z"

    }



  • 10.  RE: Bookmark expiration date

    Posted 09-26-2016 06:42:00 PM
    Thanks for your help Jatinder.


  • 11.  RE: Bookmark expiration date

    Posted 09-26-2016 06:44:00 PM
    Glad It worked. 




  • 12.  RE: Bookmark expiration date

    Posted 12-23-2016 03:50:00 PM
    I am trying to create Bookmark using API with expiration date using below JSON, but command is creating bookmark, however expiration date is set as "none". any input is appreciated.

    {

    "type": "JSBookmarkCreateParameters",

    "bookmark": {

    "type":"JSBookmark",

    "name":"TEST_20161223_112549",

    "branch":"JS_BRANCH-351",

    "expiration":"2016-12-30T23:59:00.585Z"

    },

    "timelinePointParameters": {

    "type": "JSTimelinePointLatestTimeInput",

    "sourceDataLayout": "JS_DATA_CONTAINER-225"

    }

    }



  • 13.  RE: Bookmark expiration date

    Posted 12-24-2016 07:17:00 PM
    Hello KV,
                 This seems to be behaviour when setting older API version, where expiration date is not supported.

    Please try to set the version as below, before calling off above api.

    VERSION="1.7.0"



  • 14.  RE: Bookmark expiration date

    Posted 12-26-2016 01:29:00 AM

    Yes, it did resolve the issue when I set the API version while establishing the session.

    {
        "type": "APISession",
        "version": {
            "type": "APIVersion",
            "major": 1,
            "minor": 7,
            "micro": 0
        }
    }



  • 15.  RE: Bookmark expiration date

    Posted 12-27-2016 12:47:00 PM
    Glad it worked.