javascript
The javascript policy has the following structure:
- javascript:
title: Title
desription: Description
source: ScriptThe following table describes the policy properties:
| Property label | Required | Description | Data type |
|---|---|---|---|
| Title | Yes | The title of the policy. The default value is |
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.