350-901 · Question #76
350-901 Question #76: Real Exam Question with Answer & Explanation
The correct answer is B: curl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/networkId/ssids/2' \ -H 'X-Cisco-Meraki-API-Key: 15da0c6fff295f16267f88f98694cf29a86ed87' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "My SSID", "enabled": true, "authMode": "psk", "encryptionMode": "wpa", "psk": "meraki123", "wpaEncryptionMode": "WPA1 and WPA2" }'. To configure, secure, and enable an SSID via the Meraki API, a PUT request is used with a JSON payload that includes enabled: true and all required security parameters.
Question
The Meraki API URL https://api.meraki.com/api/v0/networks/123456789/ssids/2 is been stored in the environment variable meraki_url and the API key has been stored in meraki_api_key. Which snippet presents the API call to configure, secure and enable an SSID using the Meraki API?
Options
- Acurl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/networkId/ssids/2' \ -H 'X-Cisco-Meraki-API-Key: 15da0c6fff295f16267f88f98694cf29a86ed87' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "My SSID", "enabled": false, "authMode": "psk", "encryptionMode": "wpa", "psk": "meraki123", "wpaEncryptionMode": "WPA1 and WPA2" }'
- Bcurl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/networkId/ssids/2' \ -H 'X-Cisco-Meraki-API-Key: 15da0c6fff295f16267f88f98694cf29a86ed87' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "My SSID", "enabled": true, "authMode": "psk", "encryptionMode": "wpa", "psk": "meraki123", "wpaEncryptionMode": "WPA1 and WPA2" }'
- Ccurl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/networkId/ssids/2' \ -H 'X-Cisco-Meraki-API-Key: 15da0c6fff295f16267f88f98694cf29a86ed87' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ --data-raw '{ "enabled": true, "useVlanTagging": true }'
- Dcurl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/networkId/ssids/2' \ -H 'X-Cisco-Meraki-API-Key: 15da0c6fff295f16267f88f98694cf29a86ed87' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "My SSID", "enabled": true, }'
Explanation
To configure, secure, and enable an SSID via the Meraki API, a PUT request is used with a JSON payload that includes enabled: true and all required security parameters.
Common mistakes.
- A. This snippet sets
enabledtofalse, which would disable the SSID, contradicting the requirement to enable it. - C. This snippet only enables the SSID and sets VLAN tagging, but it does not include the necessary parameters for securing the SSID (authMode, encryptionMode, psk).
- D. This snippet enables the SSID but omits crucial security configuration parameters, failing to secure it as required.
Concept tested. Meraki API SSID configuration and HTTP PUT method
Reference. https://developer.cisco.com/meraki/api-v1/#!update-network-ssid
Topics
Community Discussion
No community discussion yet for this question.