Micro Gateway only

javascript

The javascript policy has the following structure:
- javascript:
   title: Title
   desription: Description
   source: Script
The following table describes the policy properties:
Table 1. javascript policy properties
Property label Required Description Data type
Title Yes The title of the policy.

The default value is javascript.

string
Description No A description of the policy. string
Source Yes The JavaScript source code to execute. string

Example

The following is an example of a simple javascript policy:
- javascript:
   title: Example_JavaScript
   source: console.debug('Hello World!');
   description: A simple JavaScript policy.