Software Development Kit (SDK) and API Discussions

Volume list collection failed

BALAGUDURU

Hi,

 

I am having trouble collecting list of volumes on a C-dot system. I tried volume-get-iter and it returns as passed with 0 records. Also the same problem with perf-object-instance-list-info-itr. Below is the output I am seeing.

 

Untitled.png

 

1 ACCEPTED SOLUTION

asulliva

Remove the empty query, or provide some sort of value to query by, from the ZAPI call.  Also, you'll want to remove the "desired-attributes" section as well...leaving it out, or with no "volume-attributes" section, will cause it to return all data (assumign that's what you want).  With what you have in the ZAPI I believe it will only return the volume name and UUID.

 

Using simply "<volume-get-iter />" will return all volumes and all attributes.

 

<netapp xmlns="http://www.netapp.com/filer/admin" version="1.30">
  <volume-get-iter/>
</netapp>

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

asulliva

Remove the empty query, or provide some sort of value to query by, from the ZAPI call.  Also, you'll want to remove the "desired-attributes" section as well...leaving it out, or with no "volume-attributes" section, will cause it to return all data (assumign that's what you want).  With what you have in the ZAPI I believe it will only return the volume name and UUID.

 

Using simply "<volume-get-iter />" will return all volumes and all attributes.

 

<netapp xmlns="http://www.netapp.com/filer/admin" version="1.30">
  <volume-get-iter/>
</netapp>

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

BALAGUDURU

Andrew,

 

Thank you. It worked.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public