Cisco SD-WAN deployment must be troubleshooted using vManage APIs. A call to vEdge Hardware Health API returns the data in the exhibit (only a portion is shown). If this JSON is converted to a Python dictionary and assigned to the variable “d”, how the status is accessed that is indicated on line 16?

By | November 23, 2022

Refer to the exhibit. Cisco SD-WAN deployment must be troubleshooted using vManage APIs. A call to vEdge Hardware Health API returns the data in the exhibit (only a portion is shown). If this JSON is converted to a Python dictionary and assigned to the variable “d”, how the status is accessed that is indicated on line 16?

  • A. d[data][0][statusList][0][status]
  • B. d[‘data’][‘statusList’][‘status’]
  • C. d{‘data’}[0]{‘statusList’}[0]{‘status’}
  • D. d[‘data’][0][‘statusList’][0][‘status’]
Answer: Option B.
Explanation: 

The 0s in option AC and D are not logical in this scenario. The status tag already takes care of the error message.

The post Cisco SD-WAN deployment must be troubleshooted using vManage APIs. A call to vEdge Hardware Health API returns the data in the exhibit (only a portion is shown). If this JSON is converted to a Python dictionary and assigned to the variable “d”, how the status is accessed that is indicated on line 16? appeared first on Majanto.