QuestionQ491

Using APIs

Enable an SSID by using the Cisco Meraki Dashboard API. Not all options are used.

Drag & Drop
post
put
ssids
networks
'enabled': True
'X-Cisco-Meraki-API-Key': API_KEY
import requests
import json

DASHBOARD_HOST = 'https://api.meraki.com'
API_KEY = '345ed8d63e19179cf88a100bc2f8056fad512345'

url = '{}/api/v0//L_646829496481105433//1'.format (DASHBOARD_HOST)

payload = {
    
}

headers = {
    'Content-Type': 'application/json',
    
}

response = requests.(url, headers=headers,
    data=json.dumps(payload))
print(response.status_code)
Explanation

The SSID resource is addressed beneath a network, and changing its configuration uses an HTTP PUT request. Setting enabled to the Boolean value True enables the SSID. Cisco Meraki Dashboard API key authentication supplies the key in the X-Cisco-Meraki-API-Key header.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!