cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
299
Views
1
Helpful
2
Replies

DNAC API URL question

ChrisNewnham_
Level 1
Level 1

Hello

I am wondering why the following 2 URLs produce exactly the same outputs?

/dna/intent/api/v1/network-device

/api/v1/network-device

Why 2 URI's for the same thing?

Thanks!

1 Accepted Solution

Accepted Solutions

Torbjørn
Spotlight
Spotlight

They made a change in API structure in version 1.2.6, moving the intent api from /api/v1 to /dna/intent/api/v1. The old URL endpoints are still available for backwards compatability with integrations built before 1.2.6

The documentation for 1.X.X seems to have been removed from Cisco websites, but I found the following on the internet archive of it:

  • In Cisco DNA Center version 1.2.6 and above, the URL is of the following form:
    https://<IP ADDRESS>/dna/intent/api/v1/network-device
  • In older versions of Cisco DNA Center, the URL is of the following form:
    https://<IP ADDRESS>/api/v1/network-device

https://web.archive.org/web/20190330230530/https://developer.cisco.com/docs/dna-center/#!getting-started/device-inventory-example 

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

View solution in original post

2 Replies 2

Torbjørn
Spotlight
Spotlight

They made a change in API structure in version 1.2.6, moving the intent api from /api/v1 to /dna/intent/api/v1. The old URL endpoints are still available for backwards compatability with integrations built before 1.2.6

The documentation for 1.X.X seems to have been removed from Cisco websites, but I found the following on the internet archive of it:

  • In Cisco DNA Center version 1.2.6 and above, the URL is of the following form:
    https://<IP ADDRESS>/dna/intent/api/v1/network-device
  • In older versions of Cisco DNA Center, the URL is of the following form:
    https://<IP ADDRESS>/api/v1/network-device

https://web.archive.org/web/20190330230530/https://developer.cisco.com/docs/dna-center/#!getting-started/device-inventory-example 

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

ChrisNewnham_
Level 1
Level 1

Many thanks Torbjorn!