Software Development Kit (SDK) and API Discussions

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

rohancmr
3,204 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,178 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,179 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,171 Views

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

 

Thanks for help 🙂

Public