300-435 Question 255
Select 3You are tasked with automating the creation of a new user in Cisco SD-WAN vManage using its Administration API. Which of the following steps are required to construct a valid API request for this operation?
- A
Authenticate to the vManage API to obtain a session token or cookie
- B
Use the HTTP GET method to send the request for user creation
- C
Include the user details in the JSON payload within the API request body
- D
Set the Content-Type header to 'application/xml' for the request
- E
Send the API request to the vManage endpoint for user creation
Show answer and explanation
Correct answers: A, C, E
Explanation
To construct a valid API request for creating a new user using Cisco SD-WAN vManage Administration APIs, you must first authenticate to obtain a session token or cookie. The API request must use the HTTP POST method with the user details specified in the JSON payload. Additionally, the Content-Type header should be set to 'application/json', and the request must target the correct vManage API endpoint for user creation.
- A. Correct.
Correct: Authentication to the vManage API is required to obtain a session token or cookie, which will be used in subsequent API requests.
- B. Incorrect.
Incorrect: The HTTP POST method, not GET, is typically used for creating resources such as a new user.
- C. Correct.
Correct: The user details, such as username and roles, must be specified in the JSON payload within the API request body.
- D. Incorrect.
Incorrect: The Content-Type header should be set to 'application/json', not 'application/xml', as the API expects JSON-formatted data.
- E. Correct.
Correct: The API request must be sent to the correct vManage endpoint for user creation, typically under the '/admin/user' path.