<?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 get_network_devices(network_id) JSON transformation in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423203#M3810</link>
    <description>&lt;P&gt;Output generated from  get_network_devices(network_id) API is below need to transform it to other format &lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"address": "",&lt;BR /&gt;"firmware": "switch-11-22",&lt;BR /&gt;"floorPlanId": null,&lt;BR /&gt;"lanIp": "192.168.128.42",&lt;BR /&gt;"lat": 37.4180951010362,&lt;BR /&gt;"lng": -122.098531723022,&lt;BR /&gt;"model": "MS220-8P",&lt;BR /&gt;"name": "Office Switch",&lt;BR /&gt;"switchProfileId": null&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;need to transform it into mapping for geo plotting in kibana &lt;/P&gt;&lt;PRE&gt;{
   "mappings": {
      "_doc": {
         "properties": {
            "location": {
               "type": "geo_point"
            }
         }
      }
   }
}&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Oct 2019 02:06:00 GMT</pubDate>
    <dc:creator>farrukhaziz</dc:creator>
    <dc:date>2019-10-10T02:06:00Z</dc:date>
    <item>
      <title>get_network_devices(network_id) JSON transformation</title>
      <link>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423203#M3810</link>
      <description>&lt;P&gt;Output generated from  get_network_devices(network_id) API is below need to transform it to other format &lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"address": "",&lt;BR /&gt;"firmware": "switch-11-22",&lt;BR /&gt;"floorPlanId": null,&lt;BR /&gt;"lanIp": "192.168.128.42",&lt;BR /&gt;"lat": 37.4180951010362,&lt;BR /&gt;"lng": -122.098531723022,&lt;BR /&gt;"model": "MS220-8P",&lt;BR /&gt;"name": "Office Switch",&lt;BR /&gt;"switchProfileId": null&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;need to transform it into mapping for geo plotting in kibana &lt;/P&gt;&lt;PRE&gt;{
   "mappings": {
      "_doc": {
         "properties": {
            "location": {
               "type": "geo_point"
            }
         }
      }
   }
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Oct 2019 02:06:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423203#M3810</guid>
      <dc:creator>farrukhaziz</dc:creator>
      <dc:date>2019-10-10T02:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: get_network_devices(network_id) JSON transformation</title>
      <link>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423204#M3811</link>
      <description>&lt;P&gt;Could you be more precise on your question ? &lt;/P&gt;&lt;P&gt;1-What element from the output of the API do you need ?&lt;/P&gt;&lt;P&gt;2- Could you sample a complete ''&lt;SPAN&gt;geo plotting in kibana ''&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 02:40:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423204#M3811</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2019-10-10T02:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: get_network_devices(network_id) JSON transformation</title>
      <link>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423205#M3812</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/27008"&gt;@farrukhaziz&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Some of the information in the JSON output you have provided is very sensitive, it is not a good idea to post it publicly as it could be used for malicious activity. Can you please mask out the serial number, network id, lat/lng of the device, please? This information is sensitive and it is always a good idea to protect them.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 04:25:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423205#M3812</guid>
      <dc:creator>raj.yarlagadda@meraki.com</dc:creator>
      <dc:date>2019-10-10T04:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: get_network_devices(network_id) JSON transformation</title>
      <link>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423206#M3813</link>
      <description>&lt;P&gt;actual it is Cisco test lab no need to worry &lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 13:00:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423206#M3813</guid>
      <dc:creator>farrukhaziz</dc:creator>
      <dc:date>2019-10-10T13:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: get_network_devices(network_id) JSON transformation</title>
      <link>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423207#M3814</link>
      <description>&lt;P&gt;for kibana the mapping information have to be in the formate below &lt;/P&gt;&lt;PRE&gt;{
   "mappings": {
      "_doc": {
         "properties": {
            "location": {
               "type": "geo_point"
            }
         }
      }
   }
}&lt;BR /&gt;&lt;BR /&gt;and sample data look like this &lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;{"index":{"_id":1}}
{"location": "2.089330000000046,41.47367000000008", "city": "SantCugat"}
{"index":{"_id":2}}
{"location": "2.2947825000000677,41.601800991000076", "city": "Granollers"}
{"index":{"_id":3}}
{"location": "2.1105957495300474,41.5496295760424", "city": "Sabadell"}
{"index":{"_id":4}}
{"location": "2.132605678083895,41.5370461908878", "city": "Barbera"}
{"index":{"_id":5}}
{"location": "2.151270020052683,41.497779918345415", "city": "Cerdanyola"}&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Oct 2019 13:16:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/get-network-devices-network-id-json-transformation/m-p/5423207#M3814</guid>
      <dc:creator>farrukhaziz</dc:creator>
      <dc:date>2019-10-10T13:16:25Z</dc:date>
    </item>
  </channel>
</rss>

