<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WFA REST API test Finder only returns 100 results in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/54761#M11374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, the REST API to test finders/filters return 100 results in WFA 2.x versions. Could you use a HTTP header parameter "limit" to increase it to a reasonable value.&lt;/P&gt;&lt;P&gt;In an upcoming release, the default value has been increased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 03:32:18 GMT</pubDate>
    <dc:creator>shailaja</dc:creator>
    <dc:date>2014-08-05T03:32:18Z</dc:date>
    <item>
      <title>WFA REST API test Finder only returns 100 results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/54756#M11372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I test a finder through the designer interface I can get a list of all vfilers, volumes, qtrees across all of the arrays depending on what finder I select. However, if I try to do the same tests via the REST API I only get the first 100. &lt;/P&gt;&lt;P&gt;Looking at the wfa_finders.log I can see the log output one below the other and the only difference is the number of rows returned - for the API it's always 100! We plan to use the lists of vfilers, volumes, qtrees etc to validate user requests and build appropriate parameter lists for our provisioning workflows. Without a complete list, we are unable to do what we planned. Any suggestion? Or is there a setting somewhere I can use to increase the number of items returned?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the designer interface:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;23:19:41,463 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) ========================================================================================&lt;/P&gt;&lt;P&gt;23:19:41,463 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) Executing finder 'Finder{id=322, name='List all vfilers', dictionaryEntry=vFiler}', parameters '{}'&lt;/P&gt;&lt;P&gt;23:19:41,463 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) Executing local filter 'Get All vfilers', parameters '{}', query 'SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.name AS 'name',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.ip AS 'array.ip'&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.vfiler AS vfiler&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.array AS array&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON vfiler.array_id = array.id&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.name &amp;lt;&amp;gt; 'vfiler0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and UCASE(vfiler.name) NOT LIKE 'PH_%''&lt;/P&gt;&lt;P&gt;23:19:41,479 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) Local filter 'Get All vfilers' successfully executed, rows affected '272'&lt;/P&gt;&lt;P&gt;23:19:41,479 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) Finder 'List all vfilers' successfully executed, &lt;SPAN style="color: #ff0000;"&gt;rows returned '272'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;23:19:41,479 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) ========================================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the REST API:-&lt;/P&gt;&lt;P&gt;Query : &lt;A href="http://10.5.193.75/rest/finders/705450e3-8eac-403c-a1a5-55317174f57b/test" title="http://10.5.193.75/rest/finders/705450e3-8eac-403c-a1a5-55317174f57b/test" target="_blank"&gt;http://MyTestWFAServer/rest/finders/705450e3-8eac-403c-a1a5-55317174f57b/test&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log:-&lt;/P&gt;&lt;P&gt;23:20:56,750 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) ========================================================================================&lt;/P&gt;&lt;P&gt;23:20:56,750 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) Executing finder 'Finder{id=322, name='List all vfilers', dictionaryEntry=vFiler}', parameters '{}'&lt;/P&gt;&lt;P&gt;23:20:56,765 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) Executing local filter 'Get All vfilers', parameters '{}', query 'SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.name AS 'name',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.ip AS 'array.ip'&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.vfiler AS vfiler&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; storage.array AS array&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON vfiler.array_id = array.id&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfiler.name &amp;lt;&amp;gt; 'vfiler0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and UCASE(vfiler.name) NOT LIKE 'PH_%''&lt;/P&gt;&lt;P&gt;23:20:56,765 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) Local filter 'Get All vfilers' successfully executed, rows affected '272'&lt;/P&gt;&lt;P&gt;23:20:56,781 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) Finder 'List all vfilers' successfully executed,&lt;SPAN style="color: #ff0000;"&gt; rows returned '100'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;23:20:56,781 DEBUG [com.netapp.wfa.finders.execution.impl.FindersExecutorImpl] (http-executor-threads - 25) ========================================================================================&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 23:42:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/54756#M11372</guid>
      <dc:creator>SimonGordon</dc:creator>
      <dc:date>2014-08-04T23:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: WFA REST API test Finder only returns 100 results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/54761#M11374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, the REST API to test finders/filters return 100 results in WFA 2.x versions. Could you use a HTTP header parameter "limit" to increase it to a reasonable value.&lt;/P&gt;&lt;P&gt;In an upcoming release, the default value has been increased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 03:32:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/54761#M11374</guid>
      <dc:creator>shailaja</dc:creator>
      <dc:date>2014-08-05T03:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: WFA REST API test Finder only returns 100 results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/54770#M11377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm, thanks Shailaja!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 17:39:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/54770#M11377</guid>
      <dc:creator>SimonGordon</dc:creator>
      <dc:date>2014-08-08T17:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: WFA REST API test Finder only returns 100 results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/116376#M20688</link>
      <description>&lt;P&gt;Could you give me the steps on how to pass that parameter?&amp;nbsp; looks like the current default is 1000 now but we need more.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 18:07:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/116376#M20688</guid>
      <dc:creator>James_Castro</dc:creator>
      <dc:date>2016-02-26T18:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: WFA REST API test Finder only returns 100 results</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/116545#M20724</link>
      <description>&lt;P&gt;Hello James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This parameter is the HTTP header which is sent along with the HTTP get request. How to send it depends on your client. If your client is a powershell code the following will work for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;$headers = @{}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;$headers['limit']='2000'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;$cd=Get-Credentials&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;#An example filter test with a parameter being passed&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;$uri="http://localhost/rest/filters/f19a3191-4593-44f1-9f66-28b31041323f/test?IP=10.0"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;$data=Invoke-RestMethod -Uri $uri -Credential $cd -Headers $headers&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;#Count the no. of rows returned&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;$data.filterTestResults.rows.row.Count&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1000 is the default, now you can increase or even decrease this value by using the this Header limit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 10:41:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-REST-API-test-Finder-only-returns-100-results/m-p/116545#M20724</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2016-03-02T10:41:39Z</dc:date>
    </item>
  </channel>
</rss>

