gatewayscript
Use the gatewayscript policy to execute a specified DataPower® GatewayScript program.
The gatewayscript policy has the following structure:
- gatewayscript:
title: Title
desription: Description
source: ScriptThe following table describes the policy properties:
| Property label | Required | Description | Data type |
|---|---|---|---|
| Title | No | The title of the policy. The default value is |
string |
| Description | No | A description of the policy. | string |
| Source | Yes | The GatewayScript source code to execute. | string |
Example
The following is an example of a simple gatewayscript policy:- gatewayscript:
title: Example_GatewayScript
source: console.debug('Hello World!');
description: A simple GatewayScript policy.For more information about how to use a gatewayscript policy, see GatewayScript (gatewayscript) in the built-in policies section.