Skip to content

Instantly share code, notes, and snippets.

@afaqk9394
Created November 3, 2019 07:30
Show Gist options
  • Select an option

  • Save afaqk9394/3eda4cda52d8b8316575c1b9f283d295 to your computer and use it in GitHub Desktop.

Select an option

Save afaqk9394/3eda4cda52d8b8316575c1b9f283d295 to your computer and use it in GitHub Desktop.
Create a network
from meraki import meraki
api_key = 'e1cf05af36ef9fccf579a556537112fe66a60549'
org_id = '641762946900403561'
#New Network Details
my_name = 'Full Stack Networker'
my_tags = ['WorkflowTrial', 'West', 'CA']
my_time = 'US/Pacific'
current_networks = meraki.getnetworklist(api_key, org_id)
network_names = [network['name'] for network in current_networks]
my_network = meraki.addnetwork(api_key, org_id, my_name,'wireless', my_tags, my_time)
my_netid = my_network['id']
print('New Network Details: created network {0} with network ID {1}\n'.format(my_name, my_netid))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment