<?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: Cisco Prime API Filtering output in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/cisco-prime-api-filtering-output/m-p/4511299#M831</link>
    <description>&lt;P&gt;Ok Spencer, thanks anyway&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 16:27:49 GMT</pubDate>
    <dc:creator>p.juarezponte</dc:creator>
    <dc:date>2021-12-01T16:27:49Z</dc:date>
    <item>
      <title>Cisco Prime API Filtering output</title>
      <link>https://community.cisco.com/t5/controllers/cisco-prime-api-filtering-output/m-p/4508931#M829</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;I have to get some information from lots of devices.&lt;/P&gt;&lt;P&gt;In this case, I need information such as ip address, device name and serial number.&lt;/P&gt;&lt;P&gt;When I send the request, it takes so long (we have more than 11k devices) because serial number does not appear in "data/Devices.json"&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I have to get a "data/InventoryDetails.json" and I am getting so much information that I don't need.&lt;/P&gt;&lt;P&gt;Is there any way to send the request to get only needed fileds?&lt;/P&gt;&lt;P&gt;In this case, should be summary and chassis information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach my request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ruta_url = &lt;SPAN&gt;"data/InventoryDetails.json"&lt;BR /&gt;&lt;/SPAN&gt;args = {&lt;BR /&gt;    &lt;SPAN&gt;"summary.productFamily"&lt;/SPAN&gt;: [&lt;SPAN&gt;'"Switches and Hubs", "Unsupported Cisco Device", "Wireless Controller"'&lt;/SPAN&gt;]&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;".full"&lt;/SPAN&gt;: &lt;SPAN&gt;"true"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;".maxResults"&lt;/SPAN&gt;: &lt;SPAN&gt;1000&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;r = session.get(url_prime + ruta_url&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;params&lt;/SPAN&gt;=args)&lt;/PRE&gt;&lt;P&gt;Then, I have to parse all that big output to get needed fields.&lt;/P&gt;&lt;P&gt;May I request just for mentioned fields?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 15:29:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/cisco-prime-api-filtering-output/m-p/4508931#M829</guid>
      <dc:creator>p.juarezponte</dc:creator>
      <dc:date>2021-11-26T15:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco Prime API Filtering output</title>
      <link>https://community.cisco.com/t5/controllers/cisco-prime-api-filtering-output/m-p/4510114#M830</link>
      <description>&lt;P&gt;Unfortunately no.&amp;nbsp; We investigated adding support for this, as we called it "user-defined projections".&amp;nbsp; Ultimately, there were too many impacts and issues caused by trying to support this, and only a few cases where there were noticeable improvements in API response time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aside from &lt;A href="https://developer.cisco.com/site/prime-infrastructure/documents/api-reference/rest-api-v3-8/v4/@id=faq/#perf" target="_blank" rel="noopener"&gt;our standard recommendations for improving your API throughput&lt;/A&gt;, the only thing I could recommend would be putting serial numbers in a data warehouse after you've fetched them once because they won't change (unlike the configured name and management IP).&amp;nbsp; Then you can rely on&amp;nbsp;&lt;SPAN&gt;GET data/Devices to fetch everything, and only query&amp;nbsp;GET data/InventoryDetails when you need a serial number for a newly managed device.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 17:19:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/cisco-prime-api-filtering-output/m-p/4510114#M830</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2021-11-29T17:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco Prime API Filtering output</title>
      <link>https://community.cisco.com/t5/controllers/cisco-prime-api-filtering-output/m-p/4511299#M831</link>
      <description>&lt;P&gt;Ok Spencer, thanks anyway&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 16:27:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/cisco-prime-api-filtering-output/m-p/4511299#M831</guid>
      <dc:creator>p.juarezponte</dc:creator>
      <dc:date>2021-12-01T16:27:49Z</dc:date>
    </item>
  </channel>
</rss>

