300-435 Question 254
Select 2You are tasked with automating the retrieval of device inventory information from a Cisco SD-WAN environment using the vManage Administration APIs. Which steps must you take to construct a valid API request to achieve this?
- A
Authenticate with the vManage API to obtain a valid session token or cookie
- B
Send a GET request to the endpoint
/dataservice/devicewith the required headers - C
Use a POST request to the endpoint
/dataservice/device/inventoryfor retrieving device information - D
Include an Authorization header with a bearer token obtained from vManage
- E
Ensure the request payload includes JSON-formatted device details for filtering
Show answer and explanation
Correct answers: A, B
Explanation
To construct a valid API request to retrieve device inventory information from the Cisco SD-WAN vManage Administration APIs, you must first authenticate with the vManage API to obtain a session token or cookie. Then, send a GET request to the /dataservice/device endpoint, which is specifically used for retrieving device inventory. Other options, such as using a POST request, including a bearer token, or adding unnecessary payloads, are incorrect or not required for this use case.
- A. Correct.
Authentication is a mandatory first step when interacting with Cisco SD-WAN vManage APIs, as it generates a session token or cookie required for subsequent requests.
- B. Correct.
Retrieving device inventory information requires a GET request to the
/dataservice/deviceendpoint with appropriate headers, such as the session token. - C. Incorrect.
The
/dataservice/device/inventoryendpoint does not exist for retrieving device inventory. A GET request to/dataservice/deviceis the correct approach. - D. Incorrect.
While some APIs may use bearer tokens, the Cisco SD-WAN vManage APIs typically rely on session tokens or cookies for authentication, not a bearer token.
- E. Incorrect.
There is no need to include a request payload for a GET request to retrieve device inventory. Such payloads are typically required for POST or PUT requests.