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 json | |
| import sys | |
| import requests | |
| server = "https://fmcrestapisandbox.cisco.com" |
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 | |
| url = "https://management.api.umbrella.com/v1/organizations/2639918/networks" | |
| response = requests.request("GET", url) | |
| print(response.text) |
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 the ncclient library | |
| from ncclient import manager | |
| import sys | |
| import xml.dom.minidom | |
| # use the IP address or hostname of your CSR1000V device |
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
| from ncclient import manager | |
| HOST = 'ios-xe-mgmt-latest.cisco.com' | |
| PORT = '10000' | |
| USER = 'developer' | |
| PASS = 'C1sco12345' |
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
| from meraki import meraki | |
| apikey = "448e00b44c40d9b3087b5b20f78cb7c12772ea37" | |
| myOrgs = meraki.myorgaccess(apikey) | |
| #print (myOrgs) | |
| orgid = "641762946900403561" |
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
| <code> | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: nginx-pod |
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
| <code> | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: nginx-deployment |
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 json | |
| import requests | |
| api_key = 'e1cf05af36ef9fccf579a556537112fe66a60549' | |
| org_id = '641762946900403561' | |
| def get_net_name(network_id, networks): |
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
| from meraki import meraki | |
| api_key = 'e1cf05af36ef9fccf579a556537112fe66a60549' | |
| org_id = '641762946900403561' | |
| #New Network Details | |
| my_name = 'Full Stack Networker' |
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
| from meraki import meraki | |
| import pprint | |
| api_key = 'e1cf05af36ef9fccf579a556537112fe66a60549' | |
| org_id = '641762946900403561' | |
| #New Network Details |