Introduction

Download this manual as a PDF file

This section describes how to use the REST PowerPack to develop Snippet Dynamic Applications that leverage ScienceLogic's generic REST library.

The following sections provide an overview of the REST PowerPack:

What is Included in the REST PowerPack?

The REST PowerPack provides example Snippet Dynamic Applications that enable SL1 to collect configuration and performance data from REST APIs.

The PowerPack and the examples in this section utilize the ScienceLogic API to demonstrate the core functionality that the ScienceLogic REST library provides. The ScienceLogic API provides many endpoints that can be used for creating and experimenting with new Dynamic Applications. You can create and test your Dynamic Applications using a single SL1 system with a straightforward setup that does not require you to monitor any external devices.

The REST PowerPack includes:

  • Two types of Dynamic Applications:
  • Dynamic Applications that you can use as examples for building your own configuration and performance Snippet Dynamic Applications for REST APIs
  • Dynamic Applications that enable you to discover and monitor a SL1 system on which you can create and experiment with the Snippet Dynamic Applications that you build

  • Example Event Policies for generating and clearing events
  • Example Credentials for connecting to a SL1 system

Installing the REST PowerPack

Before completing the steps in this section, you must import and install the latest version of the REST PowerPack.

By default, installing a new version of a PowerPack overwrites all content from a previous version of that PowerPack that has already been installed on the target system. You can use the Enable Selective PowerPack Field Protection setting in the Behavior Settings page (System > Settings > Behavior) to prevent new PowerPacks from overwriting local changes for some commonly customized fields. (For more information, see the section on Global Settings.)

To download and install a PowerPack:

  1. Download the PowerPack from the ScienceLogic Support Site.

  1. Go to the PowerPack Manager page (System > Manage > PowerPacks).
  2. In the PowerPack Manager page, click the Actions button, then select Import PowerPack.

  1. The Import PowerPack dialog box appears:

    Image of Import PowerPack dialog box

  1. Click the [Browse] button and navigate to the PowerPack file.
  2. When the PowerPack Installer modal appears, click the Install button to install the PowerPack.

If you exit the PowerPack Installer modal without installing the imported PowerPack, the imported PowerPack will not appear in the PowerPack Manager page. However, the imported PowerPack will appear in the Imported PowerPacks modal. This page appears when you click the Actions menu and select Install PowerPack.

Additional Reading

This section is designed to provide guidance for installing, configuring, and using the REST PowerPack; understanding the different types of example Dynamic Applications that are included in the PowerPack; and building Snippet Dynamic Applications that use the ScienceLogic REST library.

This section does not cover elements of Dynamic Application development that are common to all Dynamic Application types. You should be familiar with the common elements and concepts of Dynamic Applications before reading this section. For more information, see the Dynamic Application Development section.

Additionally, snippet code is written using the Python programming language. You must be familiar with the syntax, programming techniques, and data structures of the Python language before developing Snippet Dynamic Applications. For more information, see the Snippet Dynamic Application Development section.

This section also assumes that you are already familiar with using the ScienceLogic API. For more information, see the Using the ScienceLogic API section.