Question 30 of 32 from exam 300-635-DCAUTO: Automating and Programming Cisco Data Center Solutions

Question 30 of 32 from exam 300-635-DCAUTO: Automating and Programming Cisco Data Center Solutions

Question

Using the NX-API CLI JSON-RPC interface, which two Python data structure and requests call create an SVI? (Choose two.) A.

requests.post (url, data=jso) lumps (payload), headers

ipplication/json-rpc'}, aut! username, password) )

B.

C.

payload = {
"jsonrpc": "2.0", "method": "cli_conf",
"params": {

"command": “conf t; interface vlan " + id,
"version": 1},
"id?: 2

D.

payload = [

“jsonrpc": "2.0", "method": "cli",
“params": {"cmd": "conf t", "version": 1},
where 2

"jsonrpc": "2.0", “method”: "cli",
"params": {"cmd": "interface vlan " + id, “version”: 1},
"iat: 2

E.

payload =
"jsonrpc": "2.0", "method": "cli_conf",

"params": {"cmd": “interface vlan " + id, “version”: 1},
"40% 2

Explanations

AD.