<?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 call getNetworkDeviceManagementInterfaceSettings() in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428987#M4775</link>
    <description>&lt;P&gt;It's a little bit tricky. &lt;/P&gt;&lt;P&gt;you need to know the network and the serial of each device in the network&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;import meraki
api_key = "&amp;lt;api_key&amp;gt;"
m = meraki.DashboardAPI(api_key)
orgs = m.organizations.getOrganizations()

org_id = orgs[0]["id"]

#get Networks 
networks = m.networks.getOrganizationNetworks(org_id)

#iterate through all the networks in the organization
for net in networks:
    devices = m.devices.getNetworkDevices(net["id"])
    #iterate through all the devices in the network
    for d in devices:
        #extract the management interface setting for each device
        settings = m.management_interface_settings.getNetworkDeviceManagementInterfaceSettings(net["id"],d["serial"])
        print(settings)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Jan 2020 15:42:52 GMT</pubDate>
    <dc:creator>Greenberet</dc:creator>
    <dc:date>2020-01-27T15:42:52Z</dc:date>
    <item>
      <title>How to call getNetworkDeviceManagementInterfaceSettings()</title>
      <link>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428986#M4774</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt; I'm getting my feet wet on new Meraki SDK. I'm having trouble understanding how to call different functions from this &lt;A href="https://github.com/meraki/dashboard-api-python/tree/e29586fe3c48e3dc3278da747b73649a2d7d7d53/meraki/api" target="_self" rel="nofollow noopener noreferrer"&gt;link.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What is the logic for e.g. function getNetworkDeviceManagementInterfaceSettings()?&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;import meraki
api_key = '&amp;lt;api_key&amp;gt;'
m = meraki.DashboardAPI(api_key)
orgs = m.organizations.getOrganizations()

org_id = orgs[0]['id']

#get Networks 
nets = m.networks.getOrganizationNetworks

#how to call getNetworkDeviceManagementInterfaceSettings()?
m.networks.getOrganizationNetworks('&amp;lt;network_id&amp;gt;').getNetworkDeviceManagementInterfaceSettings()#?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 14:19:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428986#M4774</guid>
      <dc:creator>IgiDicky</dc:creator>
      <dc:date>2020-01-27T14:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to call getNetworkDeviceManagementInterfaceSettings()</title>
      <link>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428987#M4775</link>
      <description>&lt;P&gt;It's a little bit tricky. &lt;/P&gt;&lt;P&gt;you need to know the network and the serial of each device in the network&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;import meraki
api_key = "&amp;lt;api_key&amp;gt;"
m = meraki.DashboardAPI(api_key)
orgs = m.organizations.getOrganizations()

org_id = orgs[0]["id"]

#get Networks 
networks = m.networks.getOrganizationNetworks(org_id)

#iterate through all the networks in the organization
for net in networks:
    devices = m.devices.getNetworkDevices(net["id"])
    #iterate through all the devices in the network
    for d in devices:
        #extract the management interface setting for each device
        settings = m.management_interface_settings.getNetworkDeviceManagementInterfaceSettings(net["id"],d["serial"])
        print(settings)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jan 2020 15:42:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428987#M4775</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2020-01-27T15:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to call getNetworkDeviceManagementInterfaceSettings()</title>
      <link>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428988#M4776</link>
      <description>&lt;P&gt;I tried to use different function from that class to update mgmt interface, but It doesn't work for me. What am I doing wrong? How can I update interface WAN2?&lt;/P&gt;&lt;P&gt;below is just a portion of code. &lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;data = {'wan1': {'wanEnabled': 'not configured', 'usingStaticIp': False, 'vlan': None}, 'wan2': {'wanEnabled': 'not configured','usingStaticIp': True,'staticIp': '1.1.1.1','staticSubnetMask': '255.255.255.252','staticGatewayIp': '1.1.1.2.','staticDns': [ '8.8.8.8', '8.8.8.8.']} 'vlan': None}}


settings = m.management_interface_settings.getNetworkDeviceManagementInterfaceSettings(networkID,mx_serial_number, data)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:36:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428988#M4776</guid>
      <dc:creator>IgiDicky</dc:creator>
      <dc:date>2020-01-28T13:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to call getNetworkDeviceManagementInterfaceSettings()</title>
      <link>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428989#M4777</link>
      <description>&lt;P&gt;every method which starts with "get" will read the data from the dashboard. You won't be able to update the settings with this.&lt;/P&gt;&lt;P&gt;In your case you will need updateNetworkDeviceManagementInterfaceSettings&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;def updateNetworkDeviceManagementInterfaceSettings(self, networkId: str, serial: str, **kwargs):
        """
        **Update the management interface settings for a device**
        https://api.meraki.com/api_docs#update-the-management-interface-settings-for-a-device
        
        - networkId (string)
        - serial (string)
        - wan1 (object): WAN 1 settings
        - wan2 (object): WAN 2 settings (only for MX devices)
        """&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 09:53:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428989#M4777</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2020-01-29T09:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to call getNetworkDeviceManagementInterfaceSettings()</title>
      <link>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428990#M4778</link>
      <description>&lt;P&gt;sry it was a typo, I meant updateNetworkDeviceManagementInterfaceSettings() but how to passe arguments for wan2 link? &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 09:55:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428990#M4778</guid>
      <dc:creator>IgiDicky</dc:creator>
      <dc:date>2020-01-29T09:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to call getNetworkDeviceManagementInterfaceSettings()</title>
      <link>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428991#M4779</link>
      <description>&lt;P&gt;I haven't tried it, but from the docs it should work like that:&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;data_wan1 =  {'wanEnabled': 'not configured', 'usingStaticIp': False, 'vlan': None}
data_wan2 = {'wanEnabled': 'not configured','usingStaticIp': True,'staticIp': '1.1.1.1','staticSubnetMask': '255.255.255.252','staticGatewayIp': '1.1.1.2.','staticDns': [ '8.8.8.8', '8.8.8.8.']} 'vlan': None}
m.management_interface_settings.updateNetworkDeviceManagementInterfaceSettings(networkID,mx_serial_number, wan1=data_wan1, wan2=data_wan2)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:02:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428991#M4779</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2020-01-29T10:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to call getNetworkDeviceManagementInterfaceSettings()</title>
      <link>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428992#M4780</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:05:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/how-to-call-getnetworkdevicemanagementinterfacesettings/m-p/5428992#M4780</guid>
      <dc:creator>IgiDicky</dc:creator>
      <dc:date>2020-01-29T10:05:26Z</dc:date>
    </item>
  </channel>
</rss>

