I am using the Python Library to list the volumes on a cluster/SVM. One of the SVMs in the cluster is protected by SVM DR. I would like to query all of the volumes on the SVM and determine which ones are protected by SVM DR. I believe the best way to do this is to look for the "vserver-dr-protection" field (which can be queried on the CLI via "vol show -vserver # -fields vserver-dr-protection"). However, I cannot seem to find the volume API field to query to get that information.
What volume API field do I need to query to get that flag, or do I have to run an additional iteration using a snapshot API field?
My code currently looks something like this:
from netapp_ontap import NetAppRestError
from netapp_ontap import config
from netapp_ontap import HostConnection
from netapp_ontap.resources import Cluster, Volume
conn = HostConnection(...)
config.CONNECTION = conn
for vol in Volume.get_collection(fields="svm,name,state,is_svm_root"):
print(vol)