cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7531
Views
30
Helpful
9
Replies

API not working

egoepfert
Level 1
Level 1

I'm able to login to the API and get a token back, but all other calls are giving me a 404:

{
"error" : "BAPI not found with technicalName network-device and restMethod GET"
}

tried GET:

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

/dna/intent/api/v1/site

/dna/intent/api/v1/discovery/count

and a few others...

 

What is going on?  This used to work...

 

9 Replies 9

gayviswa
Cisco Employee
Cisco Employee

What version of Cisco DNA Center are you using?

Shantha Kumar Selvaraj
Cisco Employee
Cisco Employee

Disabling the REST Bundle under Platform and Re enabling it fixed it on our box.

This fixed the error on DNAC 2.2.3. Thank you!

Pavan Siripuram
Cisco Employee
Cisco Employee

Below is the bug id for this issue, should get fixed in coming releases

 

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvn64908

FYSA
I just upgraded a 3 node cluster to version 1.3.3.5 and this issue still exists. I encountered the issue today when attempting a post call to add device to inventory. Specific error output was:
{
"error" : "BAPI not found with technicalName /v1/network-device/ and restMethod POST"
}
Disabling and re-enabling the bundle fixed the issue.  Does anyone have any idea what future release will have a fix for this?

Just had the same problem in 2.1.2. Bouncing the bundle "fixed" the problem.

bradwilson75
Level 1
Level 1

Same problem with upgrading to the latest patch release 1.3.3.9. Disabled and Enabled "DNA Center REST API" to resolve issue.

I also had this issue. I restarted the API bundle and it resolved the issue.

Platform > Manage > Bundles > Cisco DNA Center Rest API > Disable

then

Platform > Manage > Bundles > Cisco DNA Center Rest API > Enable

jegan_rajappa
Level 1
Level 1

I am still seeing this issue in DNA Center Version 2.2.3.5, mentioned work around is working, but it is being annoying time to time as it breaks automation work flows.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: