cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3634
Views
25
Helpful
7
Replies
egoepfert
Beginner

API not working

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...

 

7 REPLIES 7
gayviswa
Cisco Employee

What version of Cisco DNA Center are you using?

Shantha Kumar Selvaraj
Cisco Employee

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

Pavan Siripuram
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?

Michael Thornton
Beginner

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

bradwilson75
Beginner

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