I'm trying to use the REST API to enable image access
To prototype the calls I'm using powershell - plan to turn into c# once we know the command sequence we need.
I can find the snapshot using snapshots_for_time_and_date and get the id of the snapshot. When I try to use this to enable image access mode I get an error.
PS C:\htape\sn\cmd> Invoke-WebRequest -method post -Credential $credential -uri HTTPS://10.1.30.85/fapi/rest/4_0/settings/groups/659407330/copies/644881254048673798/1/actions/enable_image_access
The other calls work... I've obtained the group details, I've created a bookmark, I've got details (the Id) of the bookmark with settings/groups/ /copies/ / /snapshots_for_time_and_date - so clearly I am talking to something at seems to work, but do I need to talk to the remote RPA to enable the bookmark rather than just specifying the Cluster/copy that I got from the snapshots_for_time_and_date rather than doing everything talking to the same IP address?
Looks like the correct answer is that description and closingTimestamp and required on the snapshot. Had been using powershell, but now using curl to prototype as much easier to diagnose.
forshr
2 Intern
•
1126 Posts
904
0
Posted October 27th, 2015 11:00
Can you confirm if the IP address is the cluster/floating IP address of the RP cluster?