<?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: exportDevices in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459331#M1154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's kind of a hack (because this API resource was not written to support exporting all of the devices in the system) but you can use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webacs/api/v1/op/devices/exportDevices?groupPath=startsWith("Device%20Type")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 21:08:43 GMT</pubDate>
    <dc:creator>Spencer Zier</dc:creator>
    <dc:date>2015-08-06T21:08:43Z</dc:date>
    <item>
      <title>exportDevices</title>
      <link>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459328#M1151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I'm new to the PI API, just starting to fumble my way through doing something useful. At the moment, I am trying to use the GET Export Devices operation on all my devices. The API guide instructs me to use the URL '/webacs/api/v1/op/devices/exportDevices'. But when I try this without any request parameters (as shown in the documentation examples), I get none. However, I can successfully get a device export if I add an ipAddress parameter to the query. The documentation clearly states that the three available parameters are /optional/, so it's unclear to me why no devices are output without them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a development background, so perhaps I don't understand the API documentation. Am I doing something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 18:49:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459328#M1151</guid>
      <dc:creator>smp</dc:creator>
      <dc:date>2015-08-05T18:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: exportDevices</title>
      <link>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459329#M1152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to specify one of the three parameters.&amp;nbsp; It is a little confusing that they are marked as optional, but the API framework that we use only allows us to mark them as either "optional" or "required".&amp;nbsp; Since you're not required to send all three for any single request, it would also be confusing to mark all of them as required &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried to explain in the description of the resource:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: 12px;"&gt;It accepts three parameters: ipAddress, groupId or groupPath. If no parameters are specified, no devices will be exported.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I apologize for the confusion, I hope that clears it up.&amp;nbsp; If you need anything else please let us know!&lt;SPAN style="color: #000000; font-family: Verdana; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:31:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459329#M1152</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2015-08-06T20:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: exportDevices</title>
      <link>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459330#M1153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; It accepts three parameters: ipAddress, groupId or groupPath. If no parameters are specified, no devices will be exported&lt;/P&gt;&lt;P&gt;Yes, I noticed that, which is why I even /attempted/ to add the ipAddress parameter at all. Thanks for adding that nugget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any single parameter I can add that would return /all/ devices? I think I tried .full=true, but that didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 20:38:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459330#M1153</guid>
      <dc:creator>smp</dc:creator>
      <dc:date>2015-08-06T20:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: exportDevices</title>
      <link>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459331#M1154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's kind of a hack (because this API resource was not written to support exporting all of the devices in the system) but you can use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;webacs/api/v1/op/devices/exportDevices?groupPath=startsWith("Device%20Type")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 21:08:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459331#M1154</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2015-08-06T21:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: exportDevices</title>
      <link>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459332#M1155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ugh. I guess the right thing to do is generate a list of IPs from &lt;A href="https://community.cisco.com/" style="color: #0094c2; font-family: Verdana; font-size: 12px;"&gt;/webacs/api/v1/data/Devices&lt;/A&gt; and loop through it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the feedback, it's difficult to find a resource who is knowledgeable about the API. I'll be posting more soon, I'm sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 12:35:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/exportdevices/m-p/3459332#M1155</guid>
      <dc:creator>smp</dc:creator>
      <dc:date>2015-08-07T12:35:57Z</dc:date>
    </item>
  </channel>
</rss>

