<?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: getOrganizationSwitchPortsBySwitch missing UDLD information in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403143#M880</link>
    <description>&lt;P&gt;I don't use the Meraki SDK but I would assume right where you already have it , but without the typo. &lt;/P&gt;&lt;P&gt;extendedParam&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2025 16:55:59 GMT</pubDate>
    <dc:creator>Raphael_L</dc:creator>
    <dc:date>2025-03-26T16:55:59Z</dc:date>
    <item>
      <title>getOrganizationSwitchPortsBySwitch missing UDLD information</title>
      <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403138#M875</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;I'm struggeling a bit with getOrganizationSwitchPortsBySwitch API endpoint.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/get-organization-switch-ports-by-switch/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-organization-switch-ports-by-switch/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It does include mostly all configuration parameters of switch ports. But for reasons I do not understand UDLD configuration is not included. To get UDLD config, I must use inefficient getDeviceSwitchPort in addition.&lt;/P&gt;&lt;P&gt;Does anybody here know why UDLD config has been excluded?!? Are there any plans to add it?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Oliver Buchholz&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 09:47:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403138#M875</guid>
      <dc:creator>admob</dc:creator>
      <dc:date>2025-03-26T09:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: getOrganizationSwitchPortsBySwitch missing UDLD information</title>
      <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403139#M876</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;Have you tested with &lt;SPAN&gt;extendedParams=True ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 11:55:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403139#M876</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2025-03-26T11:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: getOrganizationSwitchPortsBySwitch missing UDLD information</title>
      <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403140#M877</link>
      <description>&lt;P&gt;Hi Raphael,&lt;/P&gt;&lt;P&gt;I'm not aware of an "extendedParams" parameter and could not find it on the documentation either. Where should I add it, to the getOrganizationSwitchPortsBySwitch request? This does not change anything on the reply.&lt;BR /&gt;Here's an example output for one port. It does not contain UDLD:&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;{
  'portId': '2', 
  'name': 'Test', 
  'tags': ['test'], 
  'enabled': True, 
  'poeEnabled': True, 
  'type': 'access', 
  'vlan': 1, 
  'voiceVlan': 2, 
  'allowedVlans': 'all', 
  'rstpEnabled': True, 
  'stpGuard': 'bpdu guard', 
  'linkNegotiation': 'Auto negotiate', 
  'accessPolicyType': 'Open'
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 12:25:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403140#M877</guid>
      <dc:creator>admob</dc:creator>
      <dc:date>2025-03-26T12:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: getOrganizationSwitchPortsBySwitch missing UDLD information</title>
      <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403141#M878</link>
      <description>&lt;PRE&gt;{
        "portId": "1",
        "name": null,
        "tags": [],
        "enabled": true,
        "poeEnabled": true,
        "type": "access",
        "vlan": 1022,
        "voiceVlan": 1035,
        "allowedVlans": "all",
        "rstpEnabled": true,
        "stpGuard": "bpdu guard",
        "linkNegotiation": "Auto negotiate",
        "accessPolicyType": "Custom access policy",
        "accessPolicyNumber": 3
      }&lt;/PRE&gt;&lt;P&gt;With : &lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;"portId"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;None&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"tags"&lt;/SPAN&gt;&lt;SPAN&gt;: [], &lt;/SPAN&gt;&lt;SPAN&gt;"enabled"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"poeEnabled"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"type"&lt;/SPAN&gt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N&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;None&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"udld"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Alert only"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"linkNegotiationCapabilities"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;SPAN&gt;"Auto negotiate"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"1 Gigabit full duplex (forced)"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"100 Megabit (auto)"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"100 Megabit full duplex (forced)"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"10 Megabit (auto)"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"10 Megabit full duplex (forced)"&lt;/SPAN&gt;&lt;SPAN&gt;], &lt;/SPAN&gt;&lt;SPAN&gt;"accessPolicyType"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Custom access policy"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"accessPolicyNumber"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"daiTrusted"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"profile"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;SPAN&gt;"enabled"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"iname"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;None&lt;/SPAN&gt;&lt;SPAN&gt;}, &lt;/SPAN&gt;&lt;SPAN&gt;"module"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;SPAN&gt;"model"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;None&lt;/SPAN&gt;&lt;SPAN&gt;}, &lt;/SPAN&gt;&lt;SPAN&gt;"mirror"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;SPAN&gt;"mode"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Not mirroring traffic"&lt;/SPAN&gt;&lt;SPAN&gt;}}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sorry for the bad data format. it is case sensitive (Params and not params)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Mar 2025 13:08:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403141#M878</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2025-03-26T13:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: getOrganizationSwitchPortsBySwitch missing UDLD information</title>
      <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403142#M879</link>
      <description>&lt;P&gt;Hi Raphael,&lt;/P&gt;&lt;P&gt;I still did not get where to add the extendedParams. Here's a sample code:&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;import os
import meraki
import meraki.exceptions

debug: bool = False
api_key = os.environ.get('MERAKI_DASHBOARD_API_KEY')

org_id:str = 'xxxx'
serial:str = 'xxxx'

dashboard: meraki.DashboardAPI = meraki.DashboardAPI(
    api_key=api_key,
    log_path='',
    output_log=debug,
    print_console=debug,
    suppress_logging=not debug)

all_ports_config:list = dashboard.switch.getOrganizationSwitchPortsBySwitch(
    org_id,
    extendedParam=True,
    total_pages=-1,
    serial=serial 
)

print(all_ports_config[0]['ports'][0])&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where do I have to add the extendedParams=True?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 15:07:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403142#M879</guid>
      <dc:creator>admob</dc:creator>
      <dc:date>2025-03-26T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: getOrganizationSwitchPortsBySwitch missing UDLD information</title>
      <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403143#M880</link>
      <description>&lt;P&gt;I don't use the Meraki SDK but I would assume right where you already have it , but without the typo. &lt;/P&gt;&lt;P&gt;extendedParam&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 16:55:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403143#M880</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2025-03-26T16:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: getOrganizationSwitchPortsBySwitch missing UDLD information</title>
      <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403144#M881</link>
      <description>&lt;P&gt;Hi Raphael,&lt;/P&gt;&lt;P&gt;sorry to bother you again, but I do not get it working. I've tried it with "extendedParams" with same result.&lt;/P&gt;&lt;P&gt;Now I've created another sample code without Meraki SDK, but same result again.&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;import os
import json
import requests

api_key = os.environ.get('MERAKI_DASHBOARD_API_KEY')

org_id:str = 'xxxx'
serial:str = 'xxxx'

url:str = "https://api.meraki.com/api/v1/organizations/{org_id}/switch/ports/bySwitch"

headers:dict = {
        'X-Cisco-Meraki-API-Key' : api_key,
        'Content-Type': 'application/json'
        }

payload:str = json.dumps(
    {
        "extendedParams": True,
        "serial": serial
    }
)

response = requests.request('GET', url, headers=headers, data=payload, timeout=60)

print(response.text.encode('utf8'))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Do you have a working example for me?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 07:50:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403144#M881</guid>
      <dc:creator>admob</dc:creator>
      <dc:date>2025-03-27T07:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: getOrganizationSwitchPortsBySwitch missing UDLD information</title>
      <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403145#M882</link>
      <description>&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;import os
import json
import requests

api_key = os.environ.get('MERAKI_DASHBOARD_API_KEY')

org_id:str = 'xxxx'
serial:str = 'xxxx'

url:str = "https://api.meraki.com/api/v1/organizations/{org_id}/switch/ports/bySwitch?extendedParams=True"

headers:dict = {
        'X-Cisco-Meraki-API-Key' : api_key,
        'Content-Type': 'application/json'
        }

response = requests.request('GET', url, headers=headers, data="", timeout=60)

print(response.text.encode('utf8'))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Simple as that. You might need to enable API beta program through the early access tab from your org.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 12:11:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403145#M882</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2025-03-27T12:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: getOrganizationSwitchPortsBySwitch missing UDLD information</title>
      <link>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403146#M883</link>
      <description>&lt;P&gt;Hi Raphael,&lt;/P&gt;&lt;P&gt;API beta with early access was making the difference! Thanks for your help!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 13:40:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getorganizationswitchportsbyswitch-missing-udld-information/m-p/5403146#M883</guid>
      <dc:creator>admob</dc:creator>
      <dc:date>2025-03-27T13:40:33Z</dc:date>
    </item>
  </channel>
</rss>

