Skip to content

An extension can use JavaScript to interact with SmartConsole. The interactions provide access to information, such as the extension location context, and can perform certain basic operations. For example, navigate to a rule. Interactions can return data asynchronously by matching callbacks.

Notifications You must be signed in to change notification settings

CheckPointSW/smart-console-extensions

Repository files navigation

smart-console-interactions

A JavaScript library to interact with SmartConsole Extension Platform

Installation

$ npm install smart-console-interactions

Basic Usage

import SmartConsoleInteractions from 'smart-console-interactions';
.
.
const interactions = new SmartConsoleInteractions(demoInteraction);
const context = await this.interactions.getContextObject();

API

Functions

  • query - Execute query to get objects from the Security Management API.
  • getContextObject -Extension context provided by SmartConsole.
  • requestCommit - Request SmartConsole user to execute list of commands. Used by extensions to apply changes by SmartConsole user private session.
  • navigate - Request SmartConsole to navigate to a rule.
  • closeExtensionWindow - Request SmartConsole to close the extension window.

See SmartConsole Extension Developer Guide for additional information.

About

An extension can use JavaScript to interact with SmartConsole. The interactions provide access to information, such as the extension location context, and can perform certain basic operations. For example, navigate to a rule. Interactions can return data asynchronously by matching callbacks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published