lb_firewall 1.0.0 copy "lb_firewall: ^1.0.0" to clipboard
lb_firewall: ^1.0.0 copied to clipboard

outdated

Logbot Firewall HTTP Service for: * Setup and gather informations about the firewall configuration * Setup and gather informations about the HTTP server configuration * Enable/Disable the firewall

Logbot Firewall SDK for Flutter #

Logbot Firewall HTTP Service for:

  • Setup and gather informations about the firewall configuration
  • Setup and gather informations about the HTTP server configuration
  • Enable/Disable the firewall

This Dart package is automatically generated by the OpenAPI Generator project:

Requirements #

Dart 2.17 or later

Installation & Usage #

Add the dependencies from pub.dev:

dependencies:
  lb_auth:
  lb_firewall:

lb_auth is always required to make authorized calls to the APIs. To use the SDK on you application see the example below:

import 'package:lb_auth/lb_auth.dart';
import 'package:lb_firewall/lb_firewall.dart';

class Example {
  
  Future<void> run() async {
    /// Initialize Logbot SDK by logging in with Logbot Credentials
    await LogbotAuth.init(LogbotCredentials(
      username: username,
      password: password,
      clientId: clientId,
      clientSecret: clientSecret,
    ));
    /// Now you can use every API included on the SDK
    /// for example:
    Configuration? response = await LogbotFirewall.config.getConfig();
  }
}

Tests #

To run all tests:

flutter test

Documentation for API Endpoints #

All URIs are relative to https://devices.logbotiot.cloud

Class Method HTTP request Description
ConfigurationApi constraints GET /config/constraints Get configuration constraints
ConfigurationApi getConfig GET /config Get service configuration
ConfigurationApi setConfig POST /config Set a new configuration
ConfigurationApi validate POST /config/validate Validates a given configuration
InfoApi health GET /health Check Logbot Firewall status
InfoApi version GET /version Get Logbot Firewall version
LogsApi getIpsLogs GET /logs/ips Retrive IPS logs
ServiceApi disable PUT /service/disable Disables firewall
ServiceApi enable PUT /service/enable Enables firewall
ServiceApi restart PUT /service/restart Restarts firewall
ServiceApi status GET /service Get service status

Documentation For Models #

Author #

Logbot SRL info@logbot.cloud

0
likes
0
pub points
0%
popularity

Publisher

verified publisherlogbot.cloud

Logbot Firewall HTTP Service for: * Setup and gather informations about the firewall configuration * Setup and gather informations about the HTTP server configuration * Enable/Disable the firewall

Homepage

Documentation

Documentation

License

unknown (license)

Dependencies

http, intl, lb_auth, lb_commons, lb_discovery, meta

More

Packages that depend on lb_firewall