{"id":21636127,"url":"https://github.com/bigevilbeard/getting_started_sdwan","last_synced_at":"2025-04-11T15:50:24.128Z","repository":{"id":128721662,"uuid":"263007257","full_name":"bigevilbeard/Getting_Started_SDWAN","owner":"bigevilbeard","description":"Getting Started with Cisco SD-WAN 19.2..2","archived":false,"fork":false,"pushed_at":"2023-05-22T21:39:23.000Z","size":816,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T11:52:25.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigevilbeard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-11T10:11:51.000Z","updated_at":"2024-03-17T12:45:16.000Z","dependencies_parsed_at":"2023-03-10T06:31:01.625Z","dependency_job_id":null,"html_url":"https://github.com/bigevilbeard/Getting_Started_SDWAN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigevilbeard%2FGetting_Started_SDWAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigevilbeard%2FGetting_Started_SDWAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigevilbeard%2FGetting_Started_SDWAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigevilbeard%2FGetting_Started_SDWAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigevilbeard","download_url":"https://codeload.github.com/bigevilbeard/Getting_Started_SDWAN/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248434418,"owners_count":21102831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T03:30:11.058Z","updated_at":"2025-04-11T15:50:24.119Z","avatar_url":"https://github.com/bigevilbeard.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting_Started_SDWAN\n\nIn Cisco SD-WAN vManage 19.2 change have been made that requires the use of a token in the headers for any API interaction to work\n\nThis public repo contains python code that can be used to interact with the `Cisco SD-WAN vManage REST API`. The environment is pre-configured to access the [Cisco DevNet Reservable Sandbox for SD-WAN](https://devnetsandbox.cisco.com/RM/Diagram/Index/c9679e49-6751-4f43-9bb4-9d7ee162b069?diagramType=Topology) fabric.You can edit the variables in the environment to point to your own vManage instance. The code contains REST API calls to authenticate, get a list of devices that are part of the SD-WAN fabric. Cisco SD-WAN vManage 19.2.2.\n\n![Sandbox Image](./images/sdwan_sandbox.png)\n\n\n## Python Environment Setup\nIt is recommended that this code be used with Python 3.6. It is highly recommended to leverage Python Virtual Environments (venv).\n\nFollow these steps to create and activate a venv.\n\n## OS X or Linux\n```\nvirtualenv venv --python=python3.6\nsource venv/bin/activate\n```\n## Install the code requirements\n```\npip install -r requirements.txt\n```\n\n## API authentication Process\n\n- Send POST request for authentication with vManage web server.\n- Method: `POST`\n- Request URL:  `https://vmanage-ip:vmanage/j_security_check`\n- POST Request Payload: `{'j_username' : username, 'j_password' : password}`\n\n## API authentication Process\n\n- Once login is successful run GET request to retrieve token and add it to session headers of subsequent API calls. \n- Method: `GET`\n- Request URL: `https://vmanage-ip:vmanage/dataservice/client/token`\n- Store the response  token value in session headers `“sess.headers['X-XSRF-TOKEN']”`\n\n## Getting / Printing Device Information\n\n- Method: `GET`\n- Request URL: `https://vmanage-ip:vmanage/dataservice/device`\n\n## Example Output\n\n![Code Image](./images/test_output.png)\n\n\n## About me\n\nStuart is a Senior Developer Advocate, public speaker, author and DevNet Expert #2022005\n\nFind me here: [LinkedIn](https://www.linkedin.com/in/stuarteclark/) / [Twitter](https://twitter.com/bigevilbeard) / [bigevilbeard.io](https://bigevilbeard.github.io/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigevilbeard%2Fgetting_started_sdwan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigevilbeard%2Fgetting_started_sdwan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigevilbeard%2Fgetting_started_sdwan/lists"}