nerdexam
Cisco

350-901 · Question #65

Which snippet presents the correct API call to configure, secure, and enable an SSID using the Meraki API?

The correct answer is B. curl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/.networkld/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 a Meraki SSID via API, the PUT request must include enabled: true along with authMode, encryptionMode, psk, and wpaEncryptionMode fields.

Understanding and Using APIs

Question

Which snippet presents the correct 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/.networkld/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/.networkld/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/.networkld/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, "useVlanTagging": true }'
  • Dcurl -X PUT
    -url 'https://api.meraki.com/api/v0/networks/.networkld/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 }'

How the community answered

(25 responses)
  • B
    92% (23)
  • C
    4% (1)
  • D
    4% (1)

Why each option

To configure, secure, and enable a Meraki SSID via API, the PUT request must include enabled: true along with authMode, encryptionMode, psk, and wpaEncryptionMode fields.

Acurl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/.networkld/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" }'

Answer A sets 'enabled: false', which disables the SSID rather than enabling it, failing the 'enable' requirement.

Bcurl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/.networkld/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" }'Correct

Answer B sets 'enabled: true' to activate the SSID, 'authMode: psk' to require a pre-shared key for security, 'encryptionMode: wpa' with 'wpaEncryptionMode: WPA1 and WPA2' to define encryption, and 'psk: meraki123' as the passphrase - fulfilling all three requirements of configure, secure, and enable.

Ccurl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/.networkld/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, "useVlanTagging": true }'

Answer C sets 'useVlanTagging: true' but omits any authentication or encryption parameters, so the SSID is not secured.

Dcurl -X PUT \ -url 'https://api.meraki.com/api/v0/networks/.networkld/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 }'

Answer D only sets the name and enables the SSID but includes no security configuration such as authMode or PSK, leaving the SSID open.

Concept tested: Meraki API PUT SSID with PSK security configuration

Source: https://developer.cisco.com/meraki/api-v1/update-network-wireless-ssid/

Topics

#Meraki API#SSID Configuration#API Calls#Network Security

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice