#api #restore #bookmarks #containersThis is what I am trying to achieve using Delphix API
1. create session
2. login
3. get list of containers
4. get list of bookmarks in a specific container from step 3
5. restore to a selected bookmark from step 4
I am able to achieve 1,2,3
but 4,5 are having issues
For step 3 I am using
curl -s -X GET -k "${DLFXURL}"/selfservice/container -b ${DLFXCOOKIE} -H "${DLFXCONTENT_TYPE}"
This is the response:
{"type":"ListResult","status":"OK","result":[{"type":"JSDataContainer","reference":
"JS_DATA_CONTAINER-1","namespace":null,"name":"FDATA DW/OLTP TEST1","notes":null,"properties":{},"activeBranch":"JS_BRANCH-1","lastUpdated":"2022-06-08T19:25:26.542Z","firstOperation":"JS_OPERATION-150","lastOperation":"JS_OPERATION-393","template":"JS_DATA_TEMPLATE-3","state":"ONLINE","operationCount":11,"owner":"USER-138"},{"type":"JSDataContainer","reference":"JS_DATA_CONTAINER-2","namespace":null,"name":"DATA DW/OLTP TEST2","notes":null,"properties":{},"activeBranch":"JS_BRANCH-2","lastUpdated":"2022-06-14T15:34:34.456Z","firstOperation":"JS_OPERATION-19","lastOperation":"JS_OPERATION-396","template":"JS_DATA_TEMPLATE-3","state":"ONLINE","operationCount":80,"owner":"USER-12"}],"job":null,"action":null,"total":2,"overflow":false}
How can get the list of all the
bookmarks from
DATA_CONTAINER-1 using api?
I am trying this API call below but returns empty
curl -s -X GET -k "${DLFXURL}"/jetstream/bookmark/JS_DATA_CONTAINER-1 -b ~/cookies.txt -H "Content-Type: application/json"
But getting error in the response:
{"type":"ErrorResult","status":"ERROR","error":{"type":"APIError","details":"The reference \"JS_DATA_CONTAINER-1\" is invalid or of the incorrect type.","action":"Check the source of the reference and the documentation
Any suggestion to get the list of bookmarks and the command to restore to a bookmarks?
------------------------------
c Ng
Community Member
------------------------------