300-435 Question 186
Single answerYou are automating network management tasks using the Cisco DNA Center API. Your task is to retrieve a list of all network devices managed by Cisco DNA Center. Which API endpoint and HTTP method combination would you use to accomplish this?
- A
GET /dna/intent/api/v1/network-device
- B
POST /dna/intent/api/v1/network-device
- C
GET /dna/intent/api/v1/topology
- D
PUT /dna/intent/api/v1/network-device
Show answer and explanation
Correct answer: A
Explanation
To retrieve a list of all network devices managed by Cisco DNA Center, the correct combination of HTTP method and API endpoint is 'GET /dna/intent/api/v1/network-device'. This endpoint specifically provides device-related data, and the 'GET' method ensures that data is fetched rather than created or modified.
- A. Correct.
This is the correct endpoint and HTTP method to retrieve a list of all network devices managed by Cisco DNA Center. The 'GET' method is used to fetch data, and '/dna/intent/api/v1/network-device' is the appropriate endpoint.
- B. Incorrect.
The 'POST' method is used to create or update resources, not retrieve them. Therefore, this is incorrect for fetching a list of network devices.
- C. Incorrect.
The '/dna/intent/api/v1/topology' endpoint is used for retrieving network topology information, not a list of network devices. This is not the correct choice.
- D. Incorrect.
The 'PUT' method is used to update existing resources, not retrieve information. Additionally, the specified endpoint is not intended for updates in this context.