#Determine snapmirror destination from soruce filer/volume

1 messages · Page 1 of 1 (latest)

quartz depot
#

I am converting some of perl zapi code to python REST. This particular code is intended to upgrade the size of an existing volume, but before doing so checks for snapmirror relationships to verify that the destination locations also have enough free space available to accommodate the size increase.

In zapi, connecting to toe source filer, I make a call to snapmirror-dest-get-iter, passing <source-volume> and <source-vserver>, and it returns back information about the destination volume.
In rest, I pass {'source.path': '<vserver>:<volname>'}, but nothing comes back.

Is it possible to look up the destination from the source filer?

quartz depot
#

figured out that I can look it up using just source.svm.name parameter and then filtering afterwards, but im still surprised I cant lookup using source.path

quartz depot
#

actually, I was mistaken about the above and I was connecting to the destination filer instead of the source when using source.svm.name

quartz depot
#

I've tried the alternate route of looking up using smrs = CLI().execute(command=f"snapmirror list-destinations", source_volume='<volname>').http_response.json() but this also fails because it always tries to call PATCH instead of GET. I can make it work by changing line 368 in cli.py to if "show" in action_word or "status" in action_word or "list" in action_word: but I would rather not monkey patch the library