Webex-Umbrella integration for managing destination lists

The objective of this project is to interact with a Webex bot, which can request a URL and this URL can be put in an Umbrella destination list

Requirements

  1. Access to Umbrella
  2. Access to Webex Developer
  3. Python 3.7 or above
  4. ngrok

Getting Started

  1. Clone repo

git clone https://github.com/IKUSI-co/umbrella-bot-policies.git

  1. Install the required libraries

pip install -r requirements.txt

Webex Bot Configuration

  1. Create a Bot in Webex and update .env with your your Webex Access Token.

Umbrella Configuration

  1. Update .env with your Umbrella API access token. For more information on creating your Access Token, please refer to the following link: Develops Cisco

  2. Update .env with the ID of Organization and Destination List

Ngrok Configuration

  1. Update .env with the port you are going to use

  2. Run the following command in Ngrok and update .env with your Forwarding under NGROK_URL

ngrok http http://localhost:PORT

Users Configuration

  1. Update the users/users.txt file with the email addresses of individuals who have write access to the bot. List each email address on a separate line

Run Project

  1. Run code

python3 manage.py

SUCCESS

From now on, you can send any message to the bot. If you are authorized, it will respond with a card asking for the URL you want to add to the Umbrella destination list. Upon sending the URL, the bot will reply with a message confirming the successful request. If an error occurs, it will also notify you accordingly. If your email is not on the list of authorized emails for requests, the bot will send a message informing you that you do not have permission to submit requests.

image

View code on GitHub
  • Owner

  • Contributors

    +2Github contributors
  • Categories

  • Products

    UmbrellaWebex
  • Programming Languages

    Python
  • License

    BSD 3-Clause "New" or "Revised" License

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.