Cisco
350-901 · Question #75
Refer to the exhibit. Which RESTCONF verb changes the GigabitEthernet2 interface from 192.168.100.1/24 to 10.10.10.1/24? import json, requests USER = 'admin' PASS = 'cisco' url = "https://ios-xe-mgmt.
Sign in or unlock 350-901 to reveal the answer and full explanation for question #75. The question stem and answer options stay visible for context.
Understanding and Using APIs
Question
Refer to the exhibit. Which RESTCONF verb changes the GigabitEthernet2 interface from 192.168.100.1/24 to 10.10.10.1/24?
import json, requests
USER = 'admin'
PASS = 'cisco'
url = "https://ios-xe-mgmt.cisco.com:9443/restconf/data/Cisco-IOS-XE-native:native"
"/interface/GigabitEthernet=2/ip/address/primary" payload = {"primary": {"address": "10.10.10.1", "mask": "255.255.255.0"}} data = json.dumps(payload) headers = { 'Accept': "application/yang-data+json", 'Content-Type': "application/yang-data+json", } response = requests.request(" ", url, auth=(USER, PASS), data=data, headers=headers, verify=False) print(response.text)
"/interface/GigabitEthernet=2/ip/address/primary" payload = {"primary": {"address": "10.10.10.1", "mask": "255.255.255.0"}} data = json.dumps(payload) headers = { 'Accept': "application/yang-data+json", 'Content-Type': "application/yang-data+json", } response = requests.request(" ", url, auth=(USER, PASS), data=data, headers=headers, verify=False) print(response.text)
Options
- APOST
- BPATCH
- CGET
- DHEAD
Unlock 350-901 to see the answer
You've previewed enough free 350-901 questions. Unlock 350-901 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#RESTCONF#HTTP Verbs#API Interaction#Network Configuration