QuestionQ50

Controller-Based Network Automation

Question Image

Refer to the exhibit. A Cisco SD-WAN deployment must be repaired by using vManage APIs. A call to the vEdge Hardware Health API returns the data shown in the exhibit (only a portion is displayed). If the JSON in the exhibit is converted into a Python dictionary named d, how is the status property referenced?

Explanation

The data field contains a list, so its first object is selected with index 0. That object’s statusList field is also a list; selecting its first object and then its status key yields d['data'][0]['statusList'][0]['status']. Cisco’s Hardware Health Summary response example uses this same data → statusList nesting.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!