2014-02-08 06:31 PM
I have used zapi in 7-mode to be able to delete snapshots, but dont see an equivalent api in cdot or atleast not able to find until now.
I am looking for pointers in using zapi in cdot to delete snapshots. Has anyone able to do that in cdot using zapi?
2014-02-09 10:29 AM
Ok. I was able to find out the API document that describes the API call for snapshot.
The document i was looking up was C:/netapp-manageability-sdk-5.2/netapp-manageability-sdk-5.2/doc/perldoc/OntapClusterAPI.html#snapshot_delete
the following is what it describes for snapshot delete. When executing a script i get the following error:
<results errno='13005' status='failed' reason='Unable to find API: snapshot_delete'/>
In my opinion this should be a straight forward call, but doesnt look like that. Has anyone able to get this working?
Any pointers appreciated.
Delete a snapshot on a specified volume. EBUSY is returned when the snapshot is in use. EROFS is returned when the volume is read-only. EAGAIN is returned when splitting a blockmap or reverting.
This API is not supported on Infinite Volume.
2014-10-20 04:45 AM
The snapshot-delete API still exists but is in the SVM context. So you either need to issue the API call to the SVM that owns the volume or use SVM tunneling (set_vserver Perl API) via the cluster SVM.
Storage Architect, NetApp EMEA
2016-05-16 11:31 AM
I've been hunting through ZExplore and still can't figure out how to do this with JAVA.
Does anyone have some suggestions on where to look or sample code for deleting a snapshot using JAVA?