cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
592
Views
0
Helpful
0
Replies

Meraki Enterprise reservable Sandbox

All,

 

When I perform API requests against the meraki always on sandbox, I have no issues. My requests come back find and I can interact with the response data. However, with the reservable sandbox I am doing something wrong, does it allow API calls? Here is an example script that I am trying to run against it, maybe this will show you where I am going wrong...

 

import requests
import json
from rich import print
requests.packages.urllib3.disable_warnings()

merakikey = "xxxxxxxxx" # Key goes here
org_url = "/organizations"

headers = {"x-cisco-meraki-api-key": merakikey, "Accept": "application/json"}
resp = requests.get(url=f"{base_url}{org_url}", headers=headers, verify=False)
resp.raise_for_status()
orgs = resp.json()
for org in orgs:
if org['name'] == "DevNetLab":
orgid = org['id']
print(orgid)
 
This is the first API call I am trying to make, want to create networks, users, ssids, and the like for help passing the DEVCOR exam....
 
V/R,
 
Charles Thompson
0 Replies 0