300-435 Question 205
Single answerA network engineer is using Cisco DNA Center's Software-Defined Access (SDA) APIs to automate the provisioning of a new fabric site. The engineer wants to retrieve the list of all existing virtual networks (VN) in the fabric. Which endpoint should the engineer use to achieve this?
- A
GET /dna/intent/api/v1/virtual-network
- B
POST /dna/intent/api/v1/virtual-network
- C
GET /dna/intent/api/v1/site
- D
GET /dna/system/api/v1/auth/token
Show answer and explanation
Correct answer: A
Explanation
The GET /dna/intent/api/v1/virtual-network endpoint is specifically designed to retrieve a list of all virtual networks (VNs) in the fabric. Understanding the correct usage of SDA APIs is crucial for automating and managing Cisco SDA environments effectively.
- A. Correct.
This is the correct API endpoint to retrieve the list of all virtual networks (VNs) in a fabric using SDA APIs.
- B. Incorrect.
POST /dna/intent/api/v1/virtual-network is used to create a new virtual network, not to retrieve the existing ones.
- C. Incorrect.
GET /dna/intent/api/v1/site is used to retrieve site hierarchy information, which is unrelated to virtual networks.
- D. Incorrect.
GET /dna/system/api/v1/auth/token is used to generate an authentication token to interact with Cisco DNA Center APIs, but it does not retrieve virtual network information.