<?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: Meraki Python SDK - UpdateNetworkVlan HTTP 403 in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/meraki-python-sdk-updatenetworkvlan-http-403/m-p/4184570#M5495</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Considering you have the correct API .. there is no network named "DevNet Sandbox ALWAYS ON" under ORG "DevNet Sandbox". Logged in to Meraki with username -&amp;nbsp;&lt;A href="mailto:devnetmeraki@cisco.com" target="_blank"&gt;devnetmeraki@cisco.com&lt;/A&gt;&amp;nbsp;and password - i*******aki&lt;/P&gt;&lt;P&gt;Maybe it was deleted or something ... try recreating the network with a MX device to modify VLAN name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall script is ok and it works if the network exists in the ORG.&lt;/P&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;</description>
    <pubDate>Tue, 17 Nov 2020 07:54:09 GMT</pubDate>
    <dc:creator>omz</dc:creator>
    <dc:date>2020-11-17T07:54:09Z</dc:date>
    <item>
      <title>Meraki Python SDK - UpdateNetworkVlan HTTP 403</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/meraki-python-sdk-updatenetworkvlan-http-403/m-p/4184008#M5494</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am studying for DevNet associate and trying out the Meraki SDK on the DevNet SandBox. I am using the provided Dashboard API Key, however when trying to perform a PUT/update it returns a 403. I tried generating a API key from dashboard myself, but that returned a different list of Organizations. Am I missing something obvious? Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code sample: Error out with 403 on "meraki.vlans.update_network_vlan(updated_vlan)"&lt;/P&gt;&lt;PRE&gt;from meraki_sdk.meraki_sdk_client import MerakiSdkClient
from pprint import pprint
import json

token = 'SandboxToken'

# Create a new SDK client
meraki = MerakiSdkClient(token)


# Just an HTTP request to grab all Orgs
orgs = meraki.organizations.get_organizations()
pprint(orgs)
for org in orgs:
    if org['name'] == "DevNet Sandbox":
        orgId = org['id']

params = {}
params['organization_id'] = orgId

# Get all of a specific orgs networks
orgNetworks = meraki.networks.get_organization_networks(params)

pprint("-----------------Organization Networks-----------------")
pprint(orgNetworks)
for network in orgNetworks:
    if network['name'] == "DevNet Sandbox ALWAYS ON":
        netId = network['id']
pprint("-----------------Network ID-----------------")
pprint(netId)


# Get all of a specific Orgs specific networks vlans
vlans = meraki.vlans.get_network_vlans(netId)
pprint("-----------------VLANS-----------------")
pprint(vlans)


# Check the postman documentation for Cisco Meraki to understand.
# update_network_vlan requires two parameters (netId, vlanId) as well as an optional third paramter, which an object with the data you want to update
vlan = vlans[0]
vlan['name'] = "DevNet Tests"
updated_vlan = {}
updated_vlan['network_id'] = netId
updated_vlan['vlan_id'] = vlan['id']
updated_vlan['update_network_vlan'] = vlan

pprint("-----------------DICT TO SEND-----------------")
pprint(updated_vlan)
result_update_vlan = meraki.vlans.update_network_vlan(updated_vlan)
pprint("-----------------UPDATE RESULT-----------------")
result_get_vlans = meraki.vlans.get_network_vlans(netId)
pprint("-----------------UPDATE VERIFY-----------------")
pprint(result_get_vlans)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2020 01:02:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/meraki-python-sdk-updatenetworkvlan-http-403/m-p/4184008#M5494</guid>
      <dc:creator>BrandonSharp37516</dc:creator>
      <dc:date>2020-11-15T01:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki Python SDK - UpdateNetworkVlan HTTP 403</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/meraki-python-sdk-updatenetworkvlan-http-403/m-p/4184570#M5495</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Considering you have the correct API .. there is no network named "DevNet Sandbox ALWAYS ON" under ORG "DevNet Sandbox". Logged in to Meraki with username -&amp;nbsp;&lt;A href="mailto:devnetmeraki@cisco.com" target="_blank"&gt;devnetmeraki@cisco.com&lt;/A&gt;&amp;nbsp;and password - i*******aki&lt;/P&gt;&lt;P&gt;Maybe it was deleted or something ... try recreating the network with a MX device to modify VLAN name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall script is ok and it works if the network exists in the ORG.&lt;/P&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;</description>
      <pubDate>Tue, 17 Nov 2020 07:54:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/meraki-python-sdk-updatenetworkvlan-http-403/m-p/4184570#M5495</guid>
      <dc:creator>omz</dc:creator>
      <dc:date>2020-11-17T07:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Meraki Python SDK - UpdateNetworkVlan HTTP 403</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/meraki-python-sdk-updatenetworkvlan-http-403/m-p/4184617#M5497</link>
      <description>&lt;P&gt;Hey there, always on sandbox is read-only - you will be able to auth and get information - but not make changes. To do this, you would need to use the reservable sandbox's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 09:53:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/meraki-python-sdk-updatenetworkvlan-http-403/m-p/4184617#M5497</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2020-11-17T09:53:46Z</dc:date>
    </item>
  </channel>
</rss>

