I'm trying to retrieve a list of snapmirror volumes (XDP to be specific) for a given source volume using the JAVA API. Under 7-mode I would issue a "snapvault-primary-get-relationship-status" but of course snapvault doesn't really exist anymore. I can get the information I'm looking for from the command line with something like "snapmirror list-destinations -source-volume <volume_name>" but I can't seem to find an API equivalent. Does anyone have suggestions for doing this in cluster mode?
For anyone else that runs into this problem. The way I solved it is by using version 1.20 (sdk 5.1) and "snapmirror-get-destination-iter". It's kind of unfortunate I can't call "snapmirror-get-destination" as that requires a known destination and the main point of my query is to ask the source what mirrors it has. The java code looks something like this: