No Results
action

Invokes a server action, passing in optional node variables.

Command

bin/es-cli.sh action -n [name] [-v [name=value] ...]

Parameters

Flag Required Description
n Yes The name of an existing server action in the edgeCore pipeline.
v No If set, provide one or more “varName=varValue” entries to set the node variables for the action invocation. e.g. -v “foo=bar” “var=code”

 

Examples

Invokes a server action:

bin/es-cli.sh --user admin --pass admin action -n JSAction

Response:
Status: Succeeded
Details: undefined
JSON Iterator: AA returnId=[[Alabama, AL, 95.4, 4833722, 50645, 1.738, 29397.03, AL.json, AL, Alabama, US48, East South Central, South, USA, 2], [Maryland, MD, 610.8, 5928814, 9707, 1.068, 41929.24, MD.json, MD, Maryland, US48, South Atlantic, South, USA, 21]]

Passes in a single variable with the action call:

bin/es-cli.sh --user admin --pass admin action -n JSAction -v UserName=Admin

Passes in multiple variables with the action call:

bin/es-cli.sh --user admin --pass admin action -n JSAction -v param1=Admin "param2"="a string with spaces"


Terms | Privacy