350-901 · Question #71
350-901 Question #71: Real Exam Question with Answer & Explanation
This simulation tests the ability to complete a Python script that interacts with the Cisco Meraki Dashboard API to locate a specific SSID by name within a given network and enable it programmatically.
Question
To complete the Python script to enable the SSID with a name of "376699609" in the network resource "11111111" using the Meraki Dashboard API.
Explanation
This simulation tests the ability to complete a Python script that interacts with the Cisco Meraki Dashboard API to locate a specific SSID by name within a given network and enable it programmatically.
Approach. The correct approach requires two API operations. First, retrieve all SSIDs for the network using a GET request to '/networks/{networkId}/wireless/ssids' (where networkId is '11111111') and iterate through the results to find the SSID whose 'name' field matches '376699609', capturing its 'number' field (an integer 0-14). Second, issue a PUT request to '/networks/{networkId}/wireless/ssids/{number}' with a JSON body of '{"enabled": true}' and authenticate via the 'X-Cisco-Meraki-API-Key' header. Using the official Meraki Python SDK, this maps to calling 'dashboard.wireless.getNetworkWirelessSsids(networkId)' to find the number, then 'dashboard.wireless.updateNetworkWirelessSsid(networkId, ssidNumber, enabled=True)' to enable it.
Concept tested. Cisco Meraki Dashboard API - programmatic SSID management using REST endpoints or the Meraki Python SDK, including authentication via API key header, retrieving wireless SSID listings, matching by name to resolve the SSID index number, and issuing an update call to toggle the enabled state.
Reference. Cisco Meraki Dashboard API documentation - Wireless SSIDs: GET /networks/{networkId}/wireless/ssids and PUT /networks/{networkId}/wireless/ssids/{number}
Topics
Community Discussion
No community discussion yet for this question.