gatewayscript-location
This command specifies the name and the location of a GatewayScript file that the GatewayScript assembly action calls.
Syntax
gatewayscript-location location
Parameter
- location
- Specifies the name and location of the GatewayScript file with a URL or by referencing the
variable in the API context with the
$(variable)format, such as$(request.headers.URL).The URL must start with the local:, store:, or temporary: directory. For example, the location of the
test.jsscript file islocal:///test.js.
Guidelines
The gatewayscript-location command specifies the name and the location of a GatewayScript file that the GatewayScript assembly action calls.
Examples
- The GatewayScript action calls a script file with the
local:///test.jsURL.# gatewayscript-location "local:///test.js" - The GatewayScript action calls a script file by referencing the
$(request.headers.URL)variable in the API context.# gatewayscript-location $(request.headers.URL)