300-435 Question 243
Select 3You are tasked with creating a Python script to retrieve the list of devices managed by a Cisco SD-WAN vManage instance using its REST API. Which of the following steps must be included in the Python script to ensure successful communication with the vManage API?
- A
Authenticate with vManage by sending a POST request to the /j_security_check endpoint with a valid username and password.
- B
Include the session token or cookie obtained from authentication in the headers of subsequent API requests.
- C
Use the GET /dataservice/device endpoint to retrieve the list of devices.
- D
Pass the API key as a query parameter for all API requests to ensure access to the vManage API.
- E
Encrypt the API request payload using AES before sending it to the vManage API.
Show answer and explanation
Correct answers: A, B, C
Explanation
To interact with Cisco SD-WAN vManage APIs, authentication is required via the /j_security_check endpoint to obtain a session token or cookie. This token or cookie must be included in subsequent API request headers for authorization. The GET /dataservice/device endpoint is used to retrieve the list of devices. API keys and AES encryption are not part of the standard vManage API workflow.
- A. Correct.
Correct: Cisco SD-WAN vManage requires authentication via the /j_security_check endpoint using valid credentials. This step is essential to obtain a session token or cookie for further requests.
- B. Correct.
Correct: After successful authentication, the session token or cookie must be included in the headers to authorize subsequent API requests.
- C. Correct.
Correct: The GET /dataservice/device endpoint is the proper API endpoint to retrieve the list of devices managed by vManage.
- D. Incorrect.
Incorrect: Cisco SD-WAN vManage does not use API keys as query parameters for authentication. It relies on session tokens or cookies obtained during authentication.
- E. Incorrect.
Incorrect: There is no requirement to encrypt the API request payload using AES. The requests are typically sent over HTTPS, which ensures encryption in transit.