300-435 Question 253
Single answerYou are tasked with automating the creation of a new user account in Cisco SD-WAN vManage using the vManage Administration APIs. Which HTTP method and endpoint should you use to achieve this?
- A
POST /dataservice/admin/user
- B
GET /dataservice/admin/user
- C
PUT /dataservice/admin/user
- D
DELETE /dataservice/admin/user
Show answer and explanation
Correct answer: A
Explanation
When using the Cisco SD-WAN vManage Administration APIs, creating a new user account requires the use of the POST HTTP method, as this is the standard method for creating new resources. The endpoint '/dataservice/admin/user' is specifically designed for managing user accounts. Other HTTP methods like GET, PUT, and DELETE do not align with the task of resource creation.
- A. Correct.
Correct. The POST method is used to create new resources, such as a new user account, in the vManage Administration APIs. The endpoint '/dataservice/admin/user' is specifically used for user management.
- B. Incorrect.
Incorrect. The GET method is used to retrieve existing information, not to create new resources.
- C. Incorrect.
Incorrect. The PUT method is typically used to update an existing resource, not to create a new one.
- D. Incorrect.
Incorrect. The DELETE method is used to remove a resource, not to create one.