300-435 Question 257
Single answerYou are automating the configuration of a Cisco SD-WAN vManage instance using its Administration APIs. To retrieve a list of all devices currently managed by vManage, you need to construct an API request. Which HTTP method and endpoint should you use?
- A
GET /dataservice/device
- B
POST /dataservice/device
- C
GET /dataservice/system/device/summary
- D
PUT /dataservice/device
Show answer and explanation
Correct answer: A
Explanation
In Cisco SD-WAN vManage Administration APIs, retrieving information about managed devices requires using the GET HTTP method along with the appropriate endpoint. The correct endpoint for retrieving all managed devices is /dataservice/device. This ensures the API request aligns with REST principles and the vManage API documentation.
- A. Correct.
GET /dataservice/device is the correct method and endpoint to retrieve a list of all devices managed by the vManage system. This is the proper way to fetch data using vManage APIs.
- B. Incorrect.
POST /dataservice/device is incorrect because POST is typically used to create or update resources, not to retrieve them.
- C. Incorrect.
GET /dataservice/system/device/summary is incorrect because this endpoint retrieves a summarized view of devices, not the full list of devices managed by vManage.
- D. Incorrect.
PUT /dataservice/device is incorrect because PUT is used to update a resource, not to retrieve it.