cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
939
Views
20
Helpful
4
Replies

sd-wan sandbox issues with REST APIs

ccnain4weeks
Level 1
Level 1

HI there

 

While I can log into vManage using the web browser, I am unable to authenticate to it via the REST APIs. This is happening whether I use Python or POSTman. I used respective credentials provided for both the always-on (shared) and reserved (non-shared) instances with no luck!

 

Please help!!

 

POSTman:

Method: POST

URL: https://sandboxsdwan.cisco.com:8443/j_security_check/

x-www-form-urlencoded

j_username: devnetuser

j_password: Cisco123!

 

Python 3.x:

import requests
data = {'j_username':'devnetuser','j_password':'Cisco123!'}
response = requests.post(url, data, verify=False)
print (response)
print (r.json())
4 Replies 4

eric.bonilla
Level 1
Level 1
Hello, with Postman trying toget the token Auth, but error below is back , like the url is not available anymore. 

x-www-form-urlencoded

j_username: devnetuser

j_password: Cisco123!

 
Saludos.
Erick
 
>>>>>
 
Error: getaddrinfo ENOTFOUND sandboxsdwan.cisco.com
Request Headers
 
AuthorizationBasic ZGV2bmV0dXNlcjpDaXNjbzEyMyE=
User-AgentPostmanRuntime/7.28.4
Accept*/*
Postman-Tokenaae98062-1289-4134-b6b7-6765b2f59f65
Hostsandboxsdwan.cisco.com:8443
Accept-Encodinggzip, deflate, br
Connectionkeep-alive
>>>>>>

Hello @eric.bonilla you are referring to an old version of the SD-WAN Always-On sandbox in your request there, which we replaced with this one --> https://devnetsandbox.cisco.com/RM/Diagram/Index/fa7f7ef9-e224-4ee7-a3fe-0f25506e9db9?diagramType=Topology

 

You can grab a pre-built Postman collection for this here --> https://developer.cisco.com/codeexchange/github/repo/CiscoDevNet/Postman-for-AlwaysOn-Cisco-SD-WAN

 

Hope this helps.

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

Thanks a lot @bigevilbeard !!  the info loks greath. There are some unavailable into the info.

Erick

>>> the reference enviromente link is un available>>

Authenticate

>>>>>

>>> this web page does not display anything>>

To access the shared environment and start developing, please follow these steps:

  1. Go to https://sandbox-sdwan-1.cisco.com
  2. Login with credentials [devnetuser/RG!_Yw919_83]
  3. >>>>>>

Nice catch @eric.bonilla link is now fixed.

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

Review Cisco Networking for a $25 gift card