ONTAP Rest API Discussions
When you use REST API to get the status/list of snapmirrors, the fields returned are:
SourceVserver SourceLocationDestinationVserverDestinationLocationStatus : snapmirroredIsHealthy TransferSchedule MirrorState : snapmirroredNcController Policy PolicyType Vserver
However, the old ONTAPI would return:
SourceVserverSourceLocationDestinationVserverDestinationLocationStatus : preparingIsHealthyTransferSchedule :MirrorState : snapmirroredNcControllerPolicyPolicyTypeVserver
My point being, that the old ONTAPI would return the MirrorState (snapmirrored) and the Status (Preparring).
With the new RESTAPI, there is no way to know that the snapmirror is still "preparring".... it only reports "snapmirrored".
So, calling another command to do something to the snapmirror fails - as the snapmirror is performing a different operation (ie. it's busy).
There seem to be quite a large number of shortcomings in the RESTAPI set of commands for this to be replacing ONTAPI in OnTap 9.14 (as we are already running 9.12 with 9.13 in RC status).
Join our Discord Community