<?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 How to get APname through API ? in Communities of Interest</title>
    <link>https://community.cisco.com/t5/communities-of-interest/how-to-get-apname-through-api/m-p/4964273#M406</link>
    <description>&lt;P&gt;we want to fetch APname which API we need to use?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 06:56:49 GMT</pubDate>
    <dc:creator>yogapriya</dc:creator>
    <dc:date>2023-11-22T06:56:49Z</dc:date>
    <item>
      <title>How to get APname through API ?</title>
      <link>https://community.cisco.com/t5/communities-of-interest/how-to-get-apname-through-api/m-p/4964273#M406</link>
      <description>&lt;P&gt;we want to fetch APname which API we need to use?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 06:56:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/communities-of-interest/how-to-get-apname-through-api/m-p/4964273#M406</guid>
      <dc:creator>yogapriya</dc:creator>
      <dc:date>2023-11-22T06:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get APname through API ?</title>
      <link>https://community.cisco.com/t5/communities-of-interest/how-to-get-apname-through-api/m-p/4964283#M407</link>
      <description>&lt;P&gt;Hi, assuming you use WLC, you can use for example this RESTCONF endpoint:&lt;BR /&gt;&lt;SPAN data-offset-key="39sgi-0-0"&gt;https://&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable" data-testid="resolvedVariable"&gt;&lt;SPAN data-offset-key="39sgi-1-0"&gt;{{WLC}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="39sgi-2-0"&gt;/restconf/data/Cisco-IOS-XE-wireless-access-point-oper:access-point-oper-data/ap-name-mac-map&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This will generate this report:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "Cisco-IOS-XE-wireless-access-point-oper:ap-name-mac-map": [
        {
            "wtp-name": "001-1-AP01",
            "wtp-mac": "08:96:xx:xx:xx:xx",
            "eth-mac": "84:3d:xx:xx:xx:xx"
        },
        {
            "wtp-name": "001-1-AP02",
            "wtp-mac": "08:96:ad:xx:xx:xx",
            "eth-mac": "84:3d:c6:xx:xx:xx"
        },
       &amp;lt;SNIP&amp;gt;
  ]
}
  
      &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your call you need basic auth and the header for yang-data+json:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;curl -u "user:password" \
	-H "Accept: application/yang-data+json" \
	https://WLC_IP_OR_HOSTNAME/restconf/data/Cisco-IOS-XE-wireless-access-point-oper:access-point-oper-data/ap-name-mac-map&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 07:23:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/communities-of-interest/how-to-get-apname-through-api/m-p/4964283#M407</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-11-22T07:23:17Z</dc:date>
    </item>
  </channel>
</rss>

