Software Development Kit (SDK) and API Discussions

Unable to get aggregate list using vserver-get-iter for zapi 1.21

rohancmr

I am able to get the aggregate list  using vserver-get-iter on zapi 1.30.However this list is not available in zapi 1.21

Is there any other way to get the list of aggregates on a vserver in zapi 1.21 ?

1 ACCEPTED SOLUTION

francoisbnc

Hi,

Both api work identicaly, these values are only filled if you set value  with  

>vserver modify -vserver <vserver>  -aggr-list <aggr1>, <aggr2>

By default all aggregates are available by all vserver when -aggr-list is emply (-)

If you want list off aggregates just use 

 

<?xml version="1.0" encoding="UTF-8"?>
<netapp xmlns="http://www.netapp.com/filer/admin" version="1.31">
<aggr-get-iter>
  <desired-attributes> 
  <aggr-attributes>
  <aggregate-name></aggregate-name>
  </aggr-attributes>
  </desired-attributes>
</aggr-get-iter>
</netapp>

 

François

 

View solution in original post

2 REPLIES 2

francoisbnc

Hi,

Both api work identicaly, these values are only filled if you set value  with  

>vserver modify -vserver <vserver>  -aggr-list <aggr1>, <aggr2>

By default all aggregates are available by all vserver when -aggr-list is emply (-)

If you want list off aggregates just use 

 

<?xml version="1.0" encoding="UTF-8"?>
<netapp xmlns="http://www.netapp.com/filer/admin" version="1.31">
<aggr-get-iter>
  <desired-attributes> 
  <aggr-attributes>
  <aggregate-name></aggregate-name>
  </aggr-attributes>
  </desired-attributes>
</aggr-get-iter>
</netapp>

 

François

 

View solution in original post

rohancmr

Awesome.....It worked after adding the aggregate to the aggr-list

 

Thanks for help 🙂

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.

Public