QuestionQ245

Understanding and Using APIs

Question Image

Refer to the exhibit. Drag the code snippets from the bottom into the blanks in the code to build a request that finds the Cisco DNA Center switch count. Not every option is used.

Drag & Drop
url
network
count
POST
GET
Content-Type
curl -L --request  \
--  https://dna/intent/api/v1/network-device/ \
--header ': application/json' \
--header 'Accept: application/json'
Explanation

Cisco Catalyst Center’s Get Device Count endpoint uses the GET method at /dna/intent/api/v1/network-device/count. The curl request therefore uses --request GET, --url for the endpoint, count as the final resource path, and Content-Type: application/json as the JSON content header.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!