Practice – devcor_350-901_Cisco_Platforms

Strength:
0%
Answered: 0 • Correct: 0 • Incorrect: 0

Logged in as Guest

Fill in the missing parts to enable a Meraki SSID using Dashboard API.

Drag the correct code snippets from the options panel into the placeholders in the code window.

import requests, os api_key = os.getenv("MERAKI_API_KEY") net_id = os.getenv("MERAKI_NETWORK_ID") ssid_num = 3 url = f"https://api.meraki.com/api/v1/networks/{net_id}/wireless/ssids/{ssid_num}" payload = {"enabled": {{1}}} r = requests.put( url, headers={{2}}, json=payload, timeout=10 ) print(r.status_code)

Drag a snippet from the right into each blank box in the code.

Available snippets

False
{"X-Auth-Token": api_key}
"true"
True
{"X-Cisco-Meraki-API-Key": api_key, "Content-Type": "application/json"}
{"X-Cisco-Meraki-API-Key": api_key}
{"Authorization": f"Bearer {api_key}"}
{"Content-Type": "application/json"}