<?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 for Device and InventoryDetails in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583768#M1367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Spencer!!!&amp;nbsp; Your answers provided me a lot of useful tips and guidance in API.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2016 22:04:39 GMT</pubDate>
    <dc:creator>rriveraa</dc:creator>
    <dc:date>2016-10-05T22:04:39Z</dc:date>
    <item>
      <title>GET for Device and InventoryDetails</title>
      <link>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583764#M1363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the get query for Device object to get some specific information for the device like: Hostname, Ipaddress, collectionTime, location, and deviceType, howerver I am requiring to get an extra information that is located in InventoryDetails Object: udiSerialNr, Could I mix informationfrom Device and InventoryDetails?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Get Device: Getting all the parameters from Device:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="https://szier-m8-106.cisco.com/webacs/api/v1/data/Devices" rel="nofollow" target="_blank"&gt;https://szier-m8-106.cisco.com/webacs/api/v1/data/Devices&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;queryResponse rootUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://szier-m8-106.cisco.com/webacs/api/v1/data" rel="nofollow" target="_blank"&gt;https://szier-m8-106.cisco.com/webacs/api/v1/data&lt;/A&gt;&lt;SPAN&gt;" requestUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://szier-m8-106.cisco.com/webacs/api/v1/data/Devices/42" rel="nofollow" target="_blank"&gt;https://szier-m8-106.cisco.com/webacs/api/v1/data/Devices/42&lt;/A&gt;&lt;SPAN&gt;" responseType="getEntity"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entity url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://szier-m8-106.cisco.com/webacs/api/v1/data/Devices/15" rel="nofollow" target="_blank"&gt;https://szier-m8-106.cisco.com/webacs/api/v1/data/Devices/15&lt;/A&gt;&lt;SPAN&gt;" type="Devices" dtoType="devicesDTO"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;devicesDTO id="15" displayName="String value"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;clearedAlarms&amp;gt;1&amp;lt;/clearedAlarms&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;collectionDetail&amp;gt;String value&amp;lt;/collectionDetail&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;collectionTime&amp;gt;2014-12-04T10:16:28.284-08:00&amp;lt;/collectionTime&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;creationTime&amp;gt;2014-12-04T10:16:28.284-08:00&amp;lt;/creationTime&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;criticalAlarms&amp;gt;1&amp;lt;/criticalAlarms&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;deviceId&amp;gt;15&amp;lt;/deviceId&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;deviceName&amp;gt;String value&amp;lt;/deviceName&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;deviceType&amp;gt;String value&amp;lt;/deviceType&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;informationAlarms&amp;gt;1&amp;lt;/informationAlarms&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;ipAddress&amp;gt;String value&amp;lt;/ipAddress&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;location&amp;gt;String value&amp;lt;/location&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;majorAlarms&amp;gt;1&amp;lt;/majorAlarms&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;managementStatus&amp;gt;UNKNOWN&amp;lt;/managementStatus&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;manufacturerPartNrs&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;manufacturerPartNr&amp;gt;String value&amp;lt;/manufacturerPartNr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/manufacturerPartNrs&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;minorAlarms&amp;gt;1&amp;lt;/minorAlarms&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;productFamily&amp;gt;String value&amp;lt;/productFamily&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;reachability&amp;gt;UNKNOWN&amp;lt;/reachability&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;softwareType&amp;gt;String value&amp;lt;/softwareType&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;softwareVersion&amp;gt;String value&amp;lt;/softwareVersion&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;warningAlarms&amp;gt;1&amp;lt;/warningAlarms&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/devicesDTO&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/entity&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/queryResponse&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Get InventoryDetails:&amp;nbsp; I just showing the udiDetails for the device I am performing the query on Device in order to get the udiSerdialNr_:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;queryResponse rootUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://szier-m8-106.cisco.com/webacs/api/v1/data" rel="nofollow" target="_blank"&gt;https://szier-m8-106.cisco.com/webacs/api/v1/data&lt;/A&gt;&lt;SPAN&gt;" requestUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://szier-m8-106.cisco.com/webacs/api/v1/data/InventoryDetails/42" rel="nofollow" target="_blank"&gt;https://szier-m8-106.cisco.com/webacs/api/v1/data/InventoryDetails/42&lt;/A&gt;&lt;SPAN&gt;" responseType="getEntity"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entity url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://szier-m8-106.cisco.com/webacs/api/v1/data/InventoryDetails/15" rel="nofollow" target="_blank"&gt;https://szier-m8-106.cisco.com/webacs/api/v1/data/InventoryDetails/15&lt;/A&gt;&lt;SPAN&gt;" type="InventoryDetails" dtoType="inventoryDetailsDTO"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;inventoryDetailsDTO id="15" displayName="String value"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;udiDetails&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;udiDetail&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;description&amp;gt;String value&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;modelNr&amp;gt;String value&amp;lt;/modelNr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;name&amp;gt;String value&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;productId&amp;gt;String value&amp;lt;/productId&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;udiSerialNr&amp;gt;String value&amp;lt;/udiSerialNr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;versionId&amp;gt;String value&amp;lt;/versionId&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/udiDetail&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/entity&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/queryResponse&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I find both objects have same parameter: &lt;SPAN style="color: #000000; font-family: Verdana; font-size: 12px;"&gt;deviceId, how could I use it in order to include this information in the Device query? or if you have any advice please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: 12px;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: 12px;"&gt;Rose&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 19:14:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583764#M1363</guid>
      <dc:creator>rriveraa</dc:creator>
      <dc:date>2016-10-05T19:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: GET for Device and InventoryDetails</title>
      <link>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583765#M1364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no way to combine the two queries into one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, they are both enumerated with the same IDs; that is, api/v1/data/Devices/12345 is the same device as api/v1/data/InventoryDetails/12345.&amp;nbsp; So you could query both API resources and correlate the data client-side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:02:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583765#M1364</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2016-10-05T21:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: GET for Device and InventoryDetails</title>
      <link>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583766#M1365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Spencer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer,&amp;nbsp; they are using the same ID, I could use it to correlate the data, could you please let me know how could do it? I am newbie in API and I am trying to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:16:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583766#M1365</guid>
      <dc:creator>rriveraa</dc:creator>
      <dc:date>2016-10-05T21:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: GET for Device and InventoryDetails</title>
      <link>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583767#M1366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The correlation is something you'd have to do client-side; you'd have to program your client to do it or configure your off-the-shelf solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The specifics all depend on the client that's interacting with the API, and whatever you're using to persist the data.&amp;nbsp; For example, if I were in your spot and using a document store to persist the data, I'd probably concurrently fetch from both API resources, merge each entity together, and then shove that merged document into the store.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:34:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583767#M1366</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2016-10-05T21:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: GET for Device and InventoryDetails</title>
      <link>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583768#M1367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Spencer!!!&amp;nbsp; Your answers provided me a lot of useful tips and guidance in API.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 22:04:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-for-device-and-inventorydetails/m-p/3583768#M1367</guid>
      <dc:creator>rriveraa</dc:creator>
      <dc:date>2016-10-05T22:04:39Z</dc:date>
    </item>
  </channel>
</rss>

