cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2679
Views
0
Helpful
10
Replies

RESTCONF API through Postman - ISR 4000

Tamirm
Level 1
Level 1

Hi guys,

 

I've ISR 4331/K9 and trying to get some data about the route table.

In the router i perform restconf and ip http server commands, and the cisco webui works well.

moreover in the "show platform software yang process" i saw nginx running state

when im trying to send GET message through Postman application i always received "404 error" message.

moreover i added the ssh user&password to the Postman application.

my ISR version is 16.6.4

Can someone knows how to resolve this issue?

a screenshot of wireshark follow and Postman application is attach.

10 Replies 10

Looks like you are missing https:// from the URI there. For example.

 

https://{{host}}/restconf/data/ietf-interfaces:interfaces-state/
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

When i do that i get SSL error

Getting closer! Make sure you disable SSL certificate verification in Postman's settings.
To disable SSL certificate verification go to Settings, click on switcher as in the screenshot below

 

postman_ssl_verification.png

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Not works yet, screen shot attach

Did you restart Postman after turning off the SSL certificate verification in Postman's settings? Could you confirm your auth/headers (please do not share your password) Here i am using the always-on CSR devnet sandbox. You can give this a try and see if this works for you.

 

CSR1000v Host: sandbox-iosxe-latest-1.cisco.com
RESTCONF Ports: 443 (HTTPS)
Username: developer
Password: C1sco12345
https://sandbox-iosxe-latest-1.cisco.com/restconf/data/Cisco-IOS-XE-device-hardware-oper:device-hardware-data
Content-Type = application/yang-data+json
Accept = application/yang-data+json

 

Screenshot 2020-11-03 at 16.51.24.pngScreenshot 2020-11-03 at 16.58.23.png

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

When i perform this GET to your cloud router its works well, but mine not...

Have a look at this guide to enabling Resconf on XE platforms https://developer.cisco.com/docs/ios-xe/#!enabling-restconf-on-ios-xe/authentication

 

Hope this helps!

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Thanks,

Finally I updated my version to 16.12.04 and now it works well

Awesome!

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

please consider accepting the solution and closing the question so it does not show up as unanswered and others with similar issues can benefit from your post thanks