Cisco
350-901 · Question #32
Fill in the blanks to complete the Python script to enable the SSID with a name of "371767916" in the network resource "1111111" using the Meraki Dashboard API.``python import requests url =…
``python import requests url = 'https://api.meraki.com/api/v0/1111111/ssids/' payload = '{"name": "371767916", "enabled": true}' headers = { 'Accept': '/', 'Content-Type': 'application/json' } response = requests.request('PUT', url, headers=headers, data = payload)…
Understanding and Using APIs
Question
Fill in the blanks to complete the Python script to enable the SSID with a name of "371767916" in the network resource "1111111" using the Meraki Dashboard API.```python
import requests
url = 'https://api.meraki.com/api/v0/1111111/ssids/'
payload = '{'\n "name": "\n '371767916',\n "enabled": true\n}'
headers = {
'Accept': '/',
'Content-Type': 'application/json'
}
response = requests.request('________', url, headers=headers, data = _______ )
print(response.text.encode('utf8'))
Exhibit
Explanation
import requests
url = 'https://api.meraki.com/api/v0/1111111/ssids/'
payload = '{"name": "371767916", "enabled": true}'
headers = {
'Accept': '*/*',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, data = payload)
print(response.text.encode('utf8'))
Topics
#Meraki API#Python requests library#HTTP POST method#Network configuration
Community Discussion
No community discussion yet for this question.
