This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

Stealthwatch Cloud API Sample Scripts

This repository contains sample Python scripts related to Cisco Stealthwatch Cloud APIs. Stealthwatch Cloud is part of Cisco's App-First Security solution offering. It is available for use by the Cisco DevNet community through Code Exchange. For more information on the Stealthwatch Cloud REST API, please see the following link: https://developer.cisco.com/docs/stealthwatch/cloud

Installation

  1. Ensure Python 3 is installed.
  2. Ensure the Python requests module is installed.
  3. Download the .py files located in the python directory.

Alternatively, advanced users can also use git to checkout / clone this project.

Configuration

Open the file env.conf and enter the following values where specified:

  • PORTAL_URL
  • API_USER
  • API_KEY

(Note: additional fields may also be required)

Obtaining API Credentials

To obtain API credentials for Stealthwatch Cloud, please do the following:

Usage

  1. Identify the path to your Python 3 executible.
    • Depending how Python 3 was installed, this might be as simple as just calling the command python or python3.
  2. Run the Python script with the following command:
    • $ <PYTHON-PATH> <PYTHON-SCRIPT-PATH>
    • Example: $ /usr/bin/python ./get_alerts.py

Known issues

No known issues.

Getting help

Use this project at your own risk (support not provided). If you need technical support with Cisco Stealthwatch APIs, do one of the following:

Browse the Forum

Check out our forum to pose a question or to see if any questions have already been answered by our community. We monitor these forums on a best effort basis and will periodically post answers.

Open A Case

Getting involved

Contributions to this code are welcome and appreciated. See CONTRIBUTING for details. Please adhere to our Code of Conduct at all times.

Licensing info

This code is licensed under the BSD 3-Clause License. See LICENSE for details.

View code on GitHub
  • Owner

  • Contributors

    +4Github contributors
  • Categories

  • 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.