<?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: How to use POST /network-device/location in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/how-to-use-post-network-device-location/m-p/3433256#M1487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, the bold/grey is why I say it's a bit confusing.&amp;nbsp; For the location API, one would expect all I should be able to enter in the model is device ID and location ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 16:00:09 GMT</pubDate>
    <dc:creator>Joe Clarke</dc:creator>
    <dc:date>2016-07-28T16:00:09Z</dc:date>
    <item>
      <title>How to use POST /network-device/location</title>
      <link>https://community.cisco.com/t5/controllers/how-to-use-post-network-device-location/m-p/3433253#M1484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached image shows the documentation for POST /network-device/location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation says that it "Associates the given location to the given device".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual argument is a NetworkDeviceNIO, not a given location or device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't actually see a "location" field in the NetworkDeviceNIO. The closest is a "snmpLocation".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how is this API supposed to be used please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&lt;IMG alt="device_location.png" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/98399_device_location.png" style="height: 423px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:30:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-use-post-network-device-location/m-p/3433253#M1484</guid>
      <dc:creator>Nathan Sowatskey</dc:creator>
      <dc:date>2019-03-01T12:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use POST /network-device/location</title>
      <link>https://community.cisco.com/t5/controllers/how-to-use-post-network-device-location/m-p/3433254#M1485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree this is confusing.&amp;nbsp; However, there is a "location" element in the NetworkDeviceNIO model.&amp;nbsp; So, let's say your location UUID is "d2b063ad-ea9b-43cd-8536-e68aa9d31c66".&amp;nbsp; Create a JSON body for the /network-device/location resource:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14697208871448937" jivemacro_uid="_14697208871448937"&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;"id":"1153fb76-06dd-4c61-9aa6-739e3d4ab80f",&lt;/P&gt;
&lt;P&gt;"location":"d2b063ad-ea9b-43cd-8536-e68aa9d31c66"&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, id is the device's UUID and location is the location UUID obtained from GET /location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:48:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-use-post-network-device-location/m-p/3433254#M1485</guid>
      <dc:creator>Joe Clarke</dc:creator>
      <dc:date>2016-07-28T15:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use POST /network-device/location</title>
      <link>https://community.cisco.com/t5/controllers/how-to-use-post-network-device-location/m-p/3433255#M1486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Joe. I was just being blind, there is a “location” attribute, I just didn’t see it. It is between “type” and “id”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my, limited. defence, some of the field names are in bold, and some in grey, so they don’t stand out. As I squint harder, I think that the convention is that the required fields are in bold, and those that are optional are in grey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:58:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-use-post-network-device-location/m-p/3433255#M1486</guid>
      <dc:creator>Nathan Sowatskey</dc:creator>
      <dc:date>2016-07-28T15:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use POST /network-device/location</title>
      <link>https://community.cisco.com/t5/controllers/how-to-use-post-network-device-location/m-p/3433256#M1487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, the bold/grey is why I say it's a bit confusing.&amp;nbsp; For the location API, one would expect all I should be able to enter in the model is device ID and location ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:00:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-use-post-network-device-location/m-p/3433256#M1487</guid>
      <dc:creator>Joe Clarke</dc:creator>
      <dc:date>2016-07-28T16:00:09Z</dc:date>
    </item>
  </channel>
</rss>

