Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save afaqk9394/6ccac98708cff4ec643caacab6c01b40 to your computer and use it in GitHub Desktop.

Select an option

Save afaqk9394/6ccac98708cff4ec643caacab6c01b40 to your computer and use it in GitHub Desktop.
examples from Postman and Python connecting to vManage servers via REST API calls
import requests
import json
url = 'https://sandboxsdwan.cisco.com:8443/j_security_check/'
data = {'j_username':'devnetuser','j_password':'Cisco123!'}
response = requests.post(url, data, verify=False)
print (response)
r = requests.get('https://sandboxsdwan.cisco.com:8443/dataservice/device',verify=False)
print (r.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment