Created
November 3, 2019 06:42
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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