Hello Ramesh,
This is absolutely right what you explained in question for creating jet stream bookmark using rest API.
Bookmark can be created either on specific input time or on latest time of container.
Here is sample API call for creating bookmark on LatestTime of container.
POST /resources/json/delphix/jetstream/bookmark
{
"type": "JSBookmarkCreateParameters",
"bookmark": {
"type": "JSBookmark",
"name": "testbookmark",
"branch": "JS_BRANCH-50",
"description": "optional bookmark description"
"tags": ["tag1","tag2","tag3","tag4","tag5"]
},
"timelinePointParameters": {
"type": "JSTimelinePointLatestTimeInput",
"sourceDataLayout": "JS_DATA_CONTAINER-20"
}
}
If you want to create bookmark at specific time, you need to change timelinePointParameters.type=JSTimelinePointTimeInput
In this case, API call will be like this:
POST /resources/json/delphix/jetstream/bookmark
{
"type": "JSBookmarkCreateParameters",
"bookmark": {
"type": "JSBookmark",
"name": "testbookmark",
"branch": "JS_BRANCH-50",
"description": "optional bookmark description"
"tags": ["tag1","tag2","tag3","tag4","tag5"]
},
"timelinePointParameters": {
"type": "JSTimelinePointTimeInput"
"sourceDataLayout": "JS_DATA_CONTAINER-20",
"time": "2016-03-24T9:47:06.763Z",
}
}
To get branch refrerence, you can login into Delphix CLI and run this command:
jetstream branch "<branchName>" ls
To get container refrerence, you can login into Delphix CLI and run this command:
jetstream container "<containerName>" ls
Hope this helps.
Here is an excerpt to create bookmark:
https://community.delphix.com/delphix/topics/jetstream-bookmark-create-using-the-api-to-create-a-new...">https://community.delphix.com/delphix/topics/jetstream-bookmark-create-using-the-api-to-create-a-new-bookmark">https://community.delphix.com/delphix/topics/jetstream-bookmark-create-using-the-api-to-create-a-new...