JN0-452 practice question 2 of 10

Which two HTTP methods are used to modify or create Mist resources via API? (Choose two.)

Full set: 120 questions
Answer options
A: GET
B: PUT Correct answer
C: POST Correct answer
D: DELETE
Correct Answer:
B. PUT; C. POST
Explanation

In the Mist RESTful API, standard HTTP methods are used for resource manipulation. The POST method is used to create a new resource within a collection (e.g., creating a new WLAN for a site). The PUT method is used to update or completely replace an existing resource (e.g., modifying the settings of an existing site). These two methods are the primary ways to create and modify configurations via the API.

Why Incorrect

A. GET is used to retrieve or read data from a resource; it does not modify or create anything.
D. DELETE is used to remove a resource; it does not modify or create it.

References

1. Juniper Mist. (n.d.). Mist API Documentation. Retrieved from api.mist.com/api/v1/docs. In the "Introduction" section, it states, "The Mist API is a RESTful API that uses standard HTTP verbs (GET, POST, PUT, DELETE)." Specific endpoint documentation, such as /api/v1/sites/{siteid}/wlans, shows POST for creation and PUT for updates.

2. Juniper Networks. (2023). Mist API. In Automation for the AI-Driven Enterprise Courseware. This courseware details that POST is for creating resources and PUT is for updating them, which are fundamental REST API principles applied in the Mist platform.

Scroll to Top