Coder Social home page Coder Social logo

wzjjack / msp-api-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from firewalla/msp-api-examples

0.0 0.0 0.0 79 KB

Sample code on using Firewalla MSP API

Home Page: https://firewalla.net

License: GNU Affero General Public License v3.0

JavaScript 60.47% Shell 39.53%

msp-api-examples's Introduction

Firewalla Managed Security Portal (MSP) API Examples

This repository contains code examples that demonstrate how to use Firewalla MSP API to interact with Firewalla MSP. You can read, play with or adapt from these examples to create your own appliance.

Prerequisites

  • A Firewalla MSP account and a valid plan
  • Access token from your MSP account, check the document for details

Quick Start

Node Examples

You could use either file or environment variable to setup your MSP domain and credential, check each example for details

git clone https://github.com/firewalla/msp-api-examples.git
cd msp-api-examples/node-examples
npm install
domain="<YOUR-MSP-DOMAIN>" token="<YOUR-MSP-TOKEN>" node ./flows/flow-pagination.js

Shell Examples

Similar as Node Examples, install required tools and modify the configurations, then run the examples.

Samples

Sample Firewalla MSP API Document Contributors
Flow Pagination Flow
Target list with CloudFlare Target List @CozMedic
Target list with CrowdSec Target List @CozMedic
Get Security alarms and send to Discord Alarm
Get Box Devices Device

Disclaimer

As Firewalla MSP API operates directly on your data without prompt. Be very careful writing your own appliance. Dry runs are recommended before any write request.

Contributing

Pull requests are welcome. Lastest development happens on main branch

You might also want to check our user community on firewalla.com and reddit

msp-api-examples's People

Contributors

wzjjack avatar melvinto avatar drahnier avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.