Question 97 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question 97 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question

import json, requests
USER = ‘admin’
PASS = ‘cisco!

url = “https: //ios-xe-mgmt .cisco.com:9443/restconf/data/Cisco-I0S-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-datatjson”,

‘Content-Type’: “application/yang-data+json”,

}

response = requests.request("[_____]”, url, auth=(USER,PASS), data=data, headers-headers,
verify=False)

print (response. text)

Refer to the exhibit.

Which RESTCONF verb changes the GigabitEthernet2 interface from 192.168.100.1/24 to 10.10.10.1/24?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.

https://blogs.cisco.com/developer/python-scripting-apis