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 ?

2 REPLIES 2

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

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

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

rohancmr

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

 

Thanks for help 🙂

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums
Public