UNSOLVED

jsinclair1

updated

7 years ago

J

jsinclair1

1 Rookie

•

26 Posts

0

1203

March 5th, 2020 06:00

RP4VM Rest API - Create Bookmark

Hello - I'm trying to navigate some REST commands on RP4VM 5.2 so I can avoid using the awful Flash interface, but the REST documentation is very vague and limited. What I want to do is be able to take bookmark snapshots at a specific time of day for a group set. I have found the location, but the json body that has to be included is where I'm confused. I'm using powershell and the invoke-restmethod command, like below:

 

Invoke-RestMethod -Method POST -Uri https://{CLUSTER_IP}:443/fapi/rest/5_2/group_sets/subsets/snapshots -Credential admin -Body ????

 

After reviewing the object browser, it appears it needs a json body element, but I can't seem to find what parameters need to be passed. I'm assuming it's something like: groupSetId, bookmarkName, consolidationPolicy, consistencyType, however none of those combos seem to work. Is there any further documentation, or something that can point me in the right direction? 

 

Thanks!

  • DELL-Sam L

    Community Manager

    •

    8118 Posts

    •

    34619 Points

    1003

    0

    Posted March 6th, 2020 11:00

    Hello jsinclar1,

    Here is the steps that is listed in RecoverPoint Version 5.0 REST API

    Workflow for creating a bookmark

    The following is a sample workflow for creating a bookmark using the REST API.

    Procedure

    1. Get the current settings for all consistency groups in the system

    (getAllGroupsSettings method):

    ../groups/settings

    1. Display all consistency group names, and have the user select the consistency groups

    to bookmark.

    1. Create a bookmark of a specific point-in-time at the active site for the specified

    consistency groups (createBookmark method):

    ../groups/bookmarks

    REST API

    Workflow for creating a bookmark 11

    (Parameters: bookmarkName, consistencyType, consolidationPolicy,

     

    https://dell.to/2Tv54j1

    Please let us know if you have any other questions.