<?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: Get Configuration Diff api in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525058#M1536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a TAC case if you like, we can continue to try to solve the issue here, or both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's an option, yeah, try to delete the device and it back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Mar 2017 15:00:43 GMT</pubDate>
    <dc:creator>Spencer Zier</dc:creator>
    <dc:date>2017-03-20T15:00:43Z</dc:date>
    <item>
      <title>Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525048#M1526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might be the wrong place to post, but I thought I would ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the REST API 3.1 guide on Cisco DevNet for the Get Configuration Diff and it doesn't pull up any details on how to use it.&amp;nbsp; Is there another place that I can find the documentation on how to use this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the link to the API guide, &lt;A href="https://developer.cisco.com/site/prime-infrastructure/documents/api-reference/rest-api-v3-1/" title="https://developer.cisco.com/site/prime-infrastructure/documents/api-reference/rest-api-v3-1/"&gt;Cisco DevNet: prime-infrastructure - REST API - v3.1 API Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:09:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525048#M1526</guid>
      <dc:creator>dasampson</dc:creator>
      <dc:date>2017-03-15T15:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525049#M1527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ooh, looks like there's a problem with this and some of the other pages in our scrape of the API docs.&amp;nbsp; Thanks for raising this issue.&amp;nbsp; I'll have to look into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meanwhile, to address your immediate need, you can download this PDF of the doc page: &lt;A href="https://cisco.app.box.com/s/xem8mwkrurasptklo3moaswr20kr9hja" title="https://cisco.app.box.com/s/xem8mwkrurasptklo3moaswr20kr9hja"&gt;config_diff.pdf - Box&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 21:00:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525049#M1527</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2017-03-15T21:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525050#M1528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So am I using this correct?&amp;nbsp; (I assume not because I am getting an error &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;) Because I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[dsampson@mnet-ws-dave ~]$ curl -k "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://user:pass@cpi/webacs/api/v1/op/configArchiveService/configDiff/172.25.232.1" rel="nofollow" target="_blank"&gt;https://user:pass@cpi/webacs/api/v1/op/configArchiveService/configDiff/172.25.232.1&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;errorDocument&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;httpResponseCode&amp;gt;500&amp;lt;/httpResponseCode&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;httpMethod&amp;gt;GET&amp;lt;/httpMethod&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;message&amp;gt;Device not found in system: 172.25.232.1&amp;lt;/message&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;exception&amp;gt;com.cisco.ncs.nbi.ops.configArchive.ConfigArchiveException: Device not found in system: 172.25.232.1&amp;lt;/exception&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;uriPath&amp;gt;op/configArchiveService/configDiff/172.25.232.1&amp;lt;/uriPath&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;queryParams&amp;gt;{}&amp;lt;/queryParams&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/errorDocument&amp;gt;[dsampson@mnet-ws-dave ~]$&lt;/P&gt;&lt;P&gt;[dsampson@mnet-ws-dave ~]$&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 12:20:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525050#M1528</guid>
      <dc:creator>dasampson</dc:creator>
      <dc:date>2017-03-16T12:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525051#M1529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hmm, ensure that the IP that you passed in is the management IP of the device that's known to Prime.&amp;nbsp; Also, if you're using virtual domains, ensure that the device is in the same virtual domain as the API user (querying /webacs/api/v2/data/Devices?.full=true&amp;amp;ipAddress=172.25.232.1 as the same user should verify that).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 17:35:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525051#M1529</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2017-03-16T17:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525052#M1530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/webacs/api/v2/data/Devices?.full=true&amp;amp;ipAddress=172.25.232.1 works fine and returns data for the device.&amp;nbsp; I can retrieve multiple configs using the webacs/api/v1/data/ConfigVersions?.full=true&amp;amp;deviceName=startsWith("cob1-oet")'; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:04:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525052#M1530</guid>
      <dc:creator>dasampson</dc:creator>
      <dc:date>2017-03-16T18:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525053#M1531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Odd, what version of PI are you using?&amp;nbsp; Have you installed any patches/updates?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:14:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525053#M1531</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2017-03-16T18:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525054#M1532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CPI version 3.1 will all the updates with the exception of the latest device pack 9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:19:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525054#M1532</guid>
      <dc:creator>dasampson</dc:creator>
      <dc:date>2017-03-16T18:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525055#M1533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave, could please you pull logs from the server (in the UI, Administration &amp;gt; Settings &amp;gt; Logging) shortly after running the configDiff query?&amp;nbsp; Please reach out to me via email (my address is on my communities.cisco.com profile for logged in users).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:36:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525055#M1533</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2017-03-16T18:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525056#M1534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for sending the logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can see in them, it confirms what I was able to find locally: if the device was added to PI's inventory by hostname instead of by IP, then the hostname needs to be specified as the device request parameter for the configDiff request.&amp;nbsp; The deviceName response parameter of the Devices resource is what you're looking for.&amp;nbsp; (So in your case, /op/configArchiveService/configDiff/cob1-oet...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation for this resource is incorrect and misleading, so we'll address that.&amp;nbsp; The description for the device request parameter should read: The device name or the management address of the device.&amp;nbsp; The management address is the address used to add the device to the managed inventory, either an IP address or hostname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, the deviceIp response parameter is a bit of a misnomer, and it's description should read: The management address of the device.&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;The management address is the address used to add the device to the managed inventory, either an IP address or hostname.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in sum, you can specify either the device name or the management address of the device to configDiff.&amp;nbsp; If the device was added by name, device name and management address are often the same (device.example.com) but may be different (device name is self-reported and configurable, but the management address must resolve and be reachable from PI).&amp;nbsp; In the case of discovery, where you don't know what type of management address was used to add the device to inventory, I'd recommend using device name instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Lastly, I just want to make sure that you're aware that the documentation available on developer.cisco.com is also available on your Prime Infrastructure server (visit &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://your_server/webacs/api/v1" rel="nofollow" target="_blank"&gt;https://your_server/webacs/api/v1&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; A couple of the advantages of viewing the docs from your server is that they'll most closely match your server (and include any changes we made in maintenance releases, which we generally don't post to DevNet) and they offer a search bar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this resolves your issue!&amp;nbsp; If not, please do reach out to me, and please do reach out with any other issues you come across.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 20:32:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525056#M1534</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2017-03-17T20:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525057#M1535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the location information on the API for Prime, it is similar to ISE with the API information located on the server.&amp;nbsp; I wasn’t aware of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try the cURL statement with the device name and then the management IP but with no luck.&amp;nbsp; Should I delete and add the device to see it is works once I know how it was added via the name or IP address?&amp;nbsp; Also, if I need to submit a TAC case on this, just let me know.&amp;nbsp; I don’t want to waste your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the results from the cURL commands and a screen shot from our Prime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$ curl -k "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://xxxxxx:xxxxxxx@somcpi.mnet.state.mn.us/webacs/api/v1/op/configArchiveService/configDiff/cob1-oet.r.state.mn.us" rel="nofollow" target="_blank"&gt;https://xxxxxx:xxxxxxx@somcpi.mnet.state.mn.us/webacs/api/v1/op/configArchiveService/configDiff/cob1-oet.r.state.mn.us&lt;/A&gt;&lt;A class="jive-link-email-small" href="mailto:xxxxxxx@somcpi.mnet.state.mn.us"&gt;xxxxxxx@somcpi.mnet.state.mn.us&lt;/A&gt;&lt;SPAN&gt;/webacs/api/v1/op/configArchiveService/configDiff/cob1-oet.r.state.mn.us"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$ curl -k "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://xxxxxx:xxxxxxx@somcpi.mnet.state.mn.us/webacs/api/v1/op/configArchiveService/configDiff/172.25.232.1" rel="nofollow" target="_blank"&gt;https://xxxxxx:xxxxxxx@somcpi.mnet.state.mn.us/webacs/api/v1/op/configArchiveService/configDiff/172.25.232.1&lt;/A&gt;&lt;A class="jive-link-email-small" href="mailto:xxxxxxx@somcpi.mnet.state.mn.us"&gt;xxxxxxx@somcpi.mnet.state.mn.us&lt;/A&gt;&lt;SPAN&gt;/webacs/api/v1/op/configArchiveService/configDiff/172.25.232.1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[dsampson@mnet-ws-dave prime]$&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 13:52:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525057#M1535</guid>
      <dc:creator>dasampson</dc:creator>
      <dc:date>2017-03-20T13:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Configuration Diff api</title>
      <link>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525058#M1536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a TAC case if you like, we can continue to try to solve the issue here, or both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's an option, yeah, try to delete the device and it back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 15:00:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-configuration-diff-api/m-p/3525058#M1536</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2017-03-20T15:00:43Z</dc:date>
    </item>
  </channel>
</rss>

