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

.NET binding and building a query

mirko
2,972 Views

Hi,

 

I'm trying to create a query in VS2013 with .NET bindings.  But the query never gets applied.  I always get all items and never a filtered subset.

 

VolumeGetIter vols = new VolumeGetIter();

vols.Query = new VolumeAttributes();

vols.Query.VolumeIdAttributes = new VolumeIdAttributes();

vols.Query.VolumeIdAttributes.OwningVserverName="myverserver";

vols.MaxRecords = 20;

vols.Tag = tag;

VolumeGetIterResult volsResult = vols.Invoke(cluster);

 

I tried filtering on .Name as well.  But volsResult always returns all volumes until MaxRecords is reached.

 

Any help would be appreciated.

1 REPLY 1

VolumeGetIterResult
2,722 Views

Same issue here.

MaxRecords is honored, but not the query.

 

Public