I also have Clusters running ONTAP 8.3 Cluster mode, so I can't rely on RESTful APIs as the older version don't support REST APIs, is there any way that I can get the mappings without using the REST APIs?
Any thoughts on this would be of great help. Thanks in Advance!
@parisi I understand that I can use those queries for getting the volume UUID and also the shares separately. In my original query I wanted to get the mapping between the volumes and the CIFS shares. And since CIFS share XML only returns the volume name, I wasn't feeling too sure of using the volume name as the key to map the CIFS share to the corresponding volume.
Especially in setups where I have multiple clusters working together. Can I rely on the volume name of CIFS collected from ZAPI using cifs-share-get-iter to then map to the Volumes collected via volume-get-iter ?
In other words can name alone be the "primary key" per-se when I have used these two queries and want to find the mapping between these objects?
If you have multiple clusters with volumes that have the same name, there's not really a way to uniquify those names unless you include information such as the cluster/SVM names in the queries. cifs-shares-get-iter will only show you the output you'd see from the CLI command "cifs shares show" - you'd have to incorporate some scripting to filter things properly.
The "cifs-session-get-iter" provides recent session info and client IP/volume relationship, but it sounds like you're going to have to use several data sources to do what you want to do here.