PowerShell Management API

Introduction

Exoprise exposes management functionality via a secure HTTPS-based API. Authentication is provided via an API key unique to each user. Access to Exoprise resources is subject to the same authorization checks as the Exoprise web interface. Currently, the API supports the following:

  • Creating sensors

  • Modifying sensors

  • Querying sensors

  • Deleting sensors

  • Querying sites

  • Modifying sites

  • Deleting sites

  • Setting, modifying, and canceling site maintenance mode settings

  • Querying alarms

  • Querying for sites, sensors, and alarms currently in the alarm state

A PowerShell wrapper for the raw API has been created as an open source PowerShell module implementing a set of cmdlets documented below. Refer to Cmdlet documentation.

Installation

Supported PowerShell versions: PowerShell 5.1 and above.

  1. Download the sample Exoprise PowerShell client script module from the Exoprise API Settings page.

  2. Place the ExopriseApiModule folder (from the downloaded zip) in any one of the module auto-load paths specified by the PowerShell $env:psmodulepath variable.

  3. The module is a script, so the PowerShell execution policy must allow scripts to run.

  4. Unblock the file once it's downloaded. You can do this through Windows Explorer (right-click and unblock through the properties), or use the Unblock-File cmdlet with a path to the module file. For example:

    Copy
    Unblock-File "C:\Users\sample\Documents\WindowsPowerShell\Modules\ExopriseApiModule\ExopriseApiModule.psm1"

The API cmdlets should now be available.

Cmdlet documentation