Skip to main content

Peplink InControl API

In the context of Fluency SIEM, this plugin integration is named as follows:

PLUGIN_NAME = InControl

Platform_PluginLambda

The Platform_PluginLambda function is a built-in function that allows the FPL script to access and (remotely) call the corresponder vendor plugin(s) for the APIs listed below.

The CUSTOMER argument is used to specify one or more running instance(s) of the same type of plugin, in the case of multiple customer's data going into a single Fluency SIEM deployment.

Note: Wildcards * are accepted for this argument to facilitate selection

The LAMBDA_FUNCTION argument is a lambda that provides the actual logic that will be performed remotely on the selected plugin.

    Platform_PluginLambda(<PLUGIN_NAME>, <CUSTOMER>, <LAMBDA_FUNCTION>)

Example:

function main() {
return Platform_PluginLambda("InControl", "*", (customer) => {
let devices = Plugin_InControl_LoadDevice((obj) => {
let {id, group_id, group_name, sn, name, status, product_id, lan_mac} = obj
return {id, group_id, group_name, sn, name, status, product_id, lan_mac}
})
let clients = Plugin_InControl_LoadClient((obj) => {
let {client_id, mac, name, status, bssid, ssid, ip, radio_mode, signal, manufacturer} = obj
return {client_id, mac, name, status, bssid, ssid, ip, radio_mode, signal, manufacturer}
})
return {devices, clients}
})
}

Plugin_InControl_LoadDevice

  • Plugin_InControl_LoadDevice()
    • load all devices from one organization

Plugin_InControl_LoadClient

  • Plugin_InControl_LoadClient()
    • load all clients from one organization