A developer needs to retrieve a list of all network devices from Cisco DNA Center. Which API endpoint and HTTP method should be used?
Trap 1: POST /dna/intent/api/v1/issues
This endpoint is for retrieving issues, not devices.
Trap 2: POST /dna/system/api/v1/auth/token
This endpoint is for authentication, not for retrieving device list.
Trap 3: GET /dna/intent/api/v1/topology/l2/{vlanID}
This endpoint retrieves L2 topology for a specific VLAN, not the device list.
- A
POST /dna/intent/api/v1/issues
Why wrong: This endpoint is for retrieving issues, not devices.
- B
POST /dna/system/api/v1/auth/token
Why wrong: This endpoint is for authentication, not for retrieving device list.
- C
GET /dna/intent/api/v1/network-device
Correct. This endpoint returns a list of network devices.
- D
GET /dna/intent/api/v1/topology/l2/{vlanID}
Why wrong: This endpoint retrieves L2 topology for a specific VLAN, not the device list.