NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

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

rohancmr
4,010 Views

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
3,984 Views

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
3,985 Views

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

 

rohancmr
3,977 Views

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

 

Thanks for help 🙂

Public