<?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: Interconnects api call only return 10 values even though I specify higher in the count. in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968966#M1969</link>
    <description>&lt;P&gt;I agree with the weirdness of this api call. &amp;nbsp;I have tried different start values and as long as the difference is 10 or greater between the start and count then it will only return 10 members. &amp;nbsp;Like you alluded it feels like a hard limit but I really hope not; I don't want to run this 14 times and figure out how to&amp;nbsp;join all the calls.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2017 15:42:36 GMT</pubDate>
    <dc:creator>MarcL1</dc:creator>
    <dc:date>2017-06-22T15:42:36Z</dc:date>
    <item>
      <title>Interconnects api call only return 10 values even though I specify higher in the count.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968933#M1965</link>
      <description>&lt;P&gt;/interconnects?start=0&amp;amp;count=50 still only returns ten values. &amp;nbsp;I have tried changing the X-API-Version to various values. &amp;nbsp;The same string will work for the enclosures and another api call where all the values are returned beyond the ten limit. &amp;nbsp;I have also tried -1 as a value. &amp;nbsp;Is the interconnect call different somehow? &amp;nbsp;I am going to need all 100+ interconnects in one file, how can I get the call to work?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968933#M1965</guid>
      <dc:creator>MarcL1</dc:creator>
      <dc:date>2017-06-22T13:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Interconnects api call only return 10 values even though I specify higher in the count.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968939#M1966</link>
      <description>&lt;P&gt;Try using -1 as the value of "count" (i.e. fetch all items).&lt;/P&gt;&lt;P&gt;Also -- what does the "total" property inside the returned &lt;SPAN&gt;InterconnectCollection contain (this should be the total number available to fetch)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Good Luck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Richard.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 14:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968939#M1966</guid>
      <dc:creator>ukdc</dc:creator>
      <dc:date>2017-06-22T14:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interconnects api call only return 10 values even though I specify higher in the count.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968941#M1967</link>
      <description>&lt;P&gt;Thanks for the reply but I have already tried -1 and that returns even less members&amp;nbsp;(5). &amp;nbsp;The total value&amp;nbsp;is equal to 132 of which I have also tried to set count equal to but only get 10 members.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 14:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968941#M1967</guid>
      <dc:creator>MarcL1</dc:creator>
      <dc:date>2017-06-22T14:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interconnects api call only return 10 values even though I specify higher in the count.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968948#M1968</link>
      <description>&lt;P&gt;What happens with a non-zero start value? How about start=50 and count=40 for example (maybe count=10 if the chunk size is baked-in as 10)?&lt;/P&gt;&lt;P&gt;The fact that you have this mechanism working elsewhere but you run into a "hard" limit on this "branch" is very odd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 14:55:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968948#M1968</guid>
      <dc:creator>ukdc</dc:creator>
      <dc:date>2017-06-22T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Interconnects api call only return 10 values even though I specify higher in the count.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968966#M1969</link>
      <description>&lt;P&gt;I agree with the weirdness of this api call. &amp;nbsp;I have tried different start values and as long as the difference is 10 or greater between the start and count then it will only return 10 members. &amp;nbsp;Like you alluded it feels like a hard limit but I really hope not; I don't want to run this 14 times and figure out how to&amp;nbsp;join all the calls.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:42:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6968966#M1969</guid>
      <dc:creator>MarcL1</dc:creator>
      <dc:date>2017-06-22T15:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Interconnects api call only return 10 values even though I specify higher in the count.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6969242#M1970</link>
      <description>&lt;P&gt;Unfortunately, this is a hard limit and cannot be overridden.&amp;nbsp; In order to get the full collection, you can do one of the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use the Python or PowerShell (Get-HPOVInterconnect) libraries, which will handle API pagination for you&lt;/LI&gt;&lt;LI&gt;handle pagination yourself.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The API supports paginated collections.&amp;nbsp; Within the collection object, you will see a property called nextPageUri.&amp;nbsp; You would use this value within a loop to store the contents of the members property.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 03:23:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6969242#M1970</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2017-06-27T03:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Interconnects api call only return 10 values even though I specify higher in the count.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6971481#M1971</link>
      <description>&lt;P&gt;Here is the rest api function I created in python 2.7 to overcome the 10 ICM limit. Please note, you will need to create a for loop to get the enclosure names. &amp;nbsp;Pass the name of each enclosure into this function and you will get all the ICMs in your enclosures.&lt;/P&gt;&lt;P&gt;def GetInterconnectMultiEnc(self,ip,auth,api,name):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; url = "https://%s/rest/interconnects" % ip&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; querystring = {"filter":"\"'enclosureName' = %s\"" %name}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; headers = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'auth': auth,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'x-api-version': api,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; response = requests.request("GET", url, headers=headers,params=querystring, verify=False)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return(json.loads(response.text))&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6971481#M1971</guid>
      <dc:creator>pshapard</dc:creator>
      <dc:date>2017-07-20T20:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Interconnects api call only return 10 values even though I specify higher in the count.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6971486#M1972</link>
      <description>&lt;P&gt;You don’t need to do that.&amp;nbsp; When you get the JSON back, it is a member collection object. Look at the &lt;U&gt;&lt;EM&gt;nextPageUri&lt;/EM&gt; &lt;/U&gt;to loop through the results to get your Interconnects.&amp;nbsp; Take a look at the &lt;A href="http://h17007.www1.hpe.com/docs/enterprise/servers/oneview3.0/cic-api/en/api-docs/current/index.html#rest/interconnects" target="_blank"&gt;GET /rest/interconnects &lt;/A&gt;Response Body section.&amp;nbsp; It shows you the expected JSON attributes/properties that will be returned, which is part of an &lt;EM&gt;InterconnectCollectionV300&lt;/EM&gt; object.&amp;nbsp; Our &lt;A href="https://github.com/HewlettPackard/python-hpOneView" target="_blank"&gt;Python &lt;/A&gt;and &lt;A href="https://github.com/HewlettPackard/POSH-HPOneView" target="_blank"&gt;PowerShell &lt;/A&gt;libraries handle this for you, so no need for custom scripts.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 22:30:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/interconnects-api-call-only-return-10-values-even-though-i/m-p/6971486#M1972</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2017-07-20T22:30:36Z</dc:date>
    </item>
  </channel>
</rss>

