300-435 Question 184
Single answerYou are tasked with automating the deployment of a new VLAN across your enterprise network using the Cisco DNA Center API. Which API endpoint and HTTP method combination would you use to achieve this task?
- A
POST /dna/intent/api/v1/vlan
- B
GET /dna/intent/api/v1/vlan
- C
PUT /dna/intent/api/v1/site
- D
DELETE /dna/intent/api/v1/vlan
Show answer and explanation
Correct answer: A
Explanation
To deploy a new VLAN using Cisco DNA Center API, you need to use the POST method along with the appropriate endpoint. The POST method is designed to create new resources, and the '/dna/intent/api/v1/vlan' endpoint specifically handles VLAN operations. Understanding the correct HTTP methods and endpoints is essential for effectively automating network management tasks with Cisco DNA Center.
- A. Correct.
This is the correct answer because the POST method is used to create or deploy new resources, such as a VLAN, in Cisco DNA Center. The endpoint '/dna/intent/api/v1/vlan' is used for VLAN-related operations.
- B. Incorrect.
This is incorrect because the GET method is used to retrieve information about resources, not to create or deploy them.
- C. Incorrect.
This is incorrect because the PUT method is used for updating or modifying existing resources. Additionally, the '/dna/intent/api/v1/site' endpoint is not related to VLAN operations.
- D. Incorrect.
This is incorrect because the DELETE method is used to remove resources, not to create them. Using this method would delete a VLAN instead of deploying it.