[ https://issues.apache.org/jira/browse/CLOUDSTACK-355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13561907#comment-13561907 ]
Min Chen commented on CLOUDSTACK-355: ------------------------------------- For listNetworks, listVPCOfferings, listNetworkOfferings, listVPCs commands, we cannot use DB view approach to provide correct pagination when there are special query parameters (supportedServices, canUseForDeploy, sourceNatSupported, etc), since internally we need to perform some business logic to filter out some results from search. So for these cases, we need to disable pagination to get correct count. > Fix "count" in a bunch of API commands > -------------------------------------- > > Key: CLOUDSTACK-355 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-355 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.1.0 > Reporter: Alena Prokharchyk > Assignee: Min Chen > Fix For: 4.1.0 > > > Count should be fixed for following list commands (as a part of Search Engine > refactoring) > listResourceLimits > listIsos > listTemplates > listLoadBalancerRuleInstances > listCapacity > listHosts > listSecurityGroups > listNetworks > listVPCs > listTemplatePermissions > listIsoPermissions > listServiceOfferings > listDiskOfferings > listNetworkDevice > listVPCOfferings > listTrafficTypeImplementors > listSnapshotPolicies > listLBStickinessPolicies > listCapabilities > listZones > listEventTypes > listSwifts > listHypervisors > listNetworkOfferings > listSupportedNetworkServices > listStorageNetworkIpRange > listEvents -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira