Software Development Kit (SDK) and API Discussions

.NET binding and building a query

mirko
2,027 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
1,777 Views

Same issue here.

MaxRecords is honored, but not the query.

 

Public