300-435 Question 244
Single answerYou are tasked with writing a Python script to retrieve the list of devices managed by a Cisco SD-WAN vManage instance. After obtaining an access token, which API request should you use to fetch the device information?
- A
Perform a GET request to the endpoint '/dataservice/device'.
- B
Perform a POST request to the endpoint '/dataservice/device'.
- C
Perform a GET request to the endpoint '/dataservice/template/device/config'.
- D
Perform a GET request to the endpoint '/dataservice/device/control'.
Show answer and explanation
Correct answer: A
Explanation
To retrieve a list of devices from vManage, you need to use the API endpoint '/dataservice/device' with a GET request. This endpoint provides device information such as hostname, IP address, and status. Other endpoints either serve different purposes or require different HTTP methods.
- A. Correct.
This is the correct endpoint and method for retrieving device information from Cisco SD-WAN vManage.
- B. Incorrect.
POST requests are used to create or modify resources, not to retrieve information. This is incorrect.
- C. Incorrect.
This endpoint is used to retrieve device configuration templates, not the list of devices. Hence, it is incorrect.
- D. Incorrect.
This endpoint retrieves control connection information, not the list of devices. This is incorrect.