ONTAP Rest API Discussions

PowerShell Toolkit 9.12 - Issues with RESTAPI Not Providing All Details that were in ONTAPI

MRoney
698 Views

When you use REST API to get the status/list of snapmirrors, the fields returned are:

 

SourceVserver 
SourceLocation
DestinationVserver
DestinationLocation
Status : snapmirrored
IsHealthy 
TransferSchedule 
MirrorState : snapmirrored
NcController 
Policy 
PolicyType 
Vserver

 

However, the old ONTAPI would return:

SourceVserver
SourceLocation
DestinationVserver
DestinationLocation
Status : preparing
IsHealthy
TransferSchedule :
MirrorState : snapmirrored
NcController
Policy
PolicyType
Vserver

 

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).

0 REPLIES 0
Public