I'm tring to automate the deletion of a Volume and the related snapmirror relationship trough ontap2.0 apis in SLM.
i'm able to delete the snapmirror relationship on the destination volume, but usually, doing so from the GUI, you have the options to also release the snapmirror rerlationship on the source volume:
While working on ontap APIs, there dosen't seem to be any snapmirror-release related call, therefore i'm unable to delete the source voume since it gives me an error stating that the volume is part of an un-released snapmirror relationship.
Here is the error i get after trying to DELETE the volume:
"error_message": "Volume voltestsm in Vserver ITNAPPOCSVMVM01 is the source endpoint of one or more SnapMirror relationships. Before you delete the volume, you must release the source information of the SnapMirror relationships using snapmirror release. To display the destinations to be used in the snapmirror release commands, use the snapmirror list-destinations -source-vserver ITNAPPOCSVMVM01 -source-volume voltestsm command. (errno=18436)",
and none of the calls available seems to be able to RELEASE the relationship:
Retrieve all the snap-mirrors
Retrieve the specified snap-mirror
Retrieve all the events of specified snap-mirror