cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2447
Views
15
Helpful
4
Replies

API to get Webex IP addresses and URLs

Patrick Horner
Cisco Employee
Cisco Employee

Team,

My customer is asking if there is an API that might be utilized to get a list of current Webex service(s) IP address networks and URLs. Their current security policy is to only allow required IP addresses and URLs for Webex access from internal. Their desire is to weekly check and generate alerts on any added address space or URLs they might require for their Webex service. I explained it does not happen often but they want to automate the alerting internally none the less.

 

Thank you much in advance!

1 Accepted Solution

Accepted Solutions

I have asked around and indeed like Oxana mentioned, this is the way, so you need to scrape the page... I have used a combination of these Python modules before to scrape pages like this:

from urllib.request import urlopen
from bs4 import BeautifulSoup

link_to_scrape = "https://help.webex.com/en-us/article/WBX264/How-Do-I-Allow-Webex-Meetings-Traffic-on-My-Network"

# retrieve text with html parser
html = urlopen(link_to_scrape).read()
soup = BeautifulSoup(html, "html.parser")

Not sure if this is the best way but it worked for me! Here is a (2 year old) project how I did it with Firepower to block DNS-over-HTTPS:

https://github.com/chrivand/block_doh_firepower

Hope this helps  

 

View solution in original post

4 Replies 4

osanniko
Cisco Employee
Cisco Employee

Hello Patrik,

Take a look https://help.webex.com/en-US/article/WBX264/How-Do-I-Allow-Webex-Meetings-Traffic-on-My-Network

This is very static, only modified if Cisco is opening brand new Webex site.

 

Please let me know if this helps.

I have asked around and indeed like Oxana mentioned, this is the way, so you need to scrape the page... I have used a combination of these Python modules before to scrape pages like this:

from urllib.request import urlopen
from bs4 import BeautifulSoup

link_to_scrape = "https://help.webex.com/en-us/article/WBX264/How-Do-I-Allow-Webex-Meetings-Traffic-on-My-Network"

# retrieve text with html parser
html = urlopen(link_to_scrape).read()
soup = BeautifulSoup(html, "html.parser")

Not sure if this is the best way but it worked for me! Here is a (2 year old) project how I did it with Firepower to block DNS-over-HTTPS:

https://github.com/chrivand/block_doh_firepower

Hope this helps  

 

Thank you Chris!

Thank you Oxana!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: