Fetches the data set of a producer (feed or transform), passing in optional node variables.
Command
bin/es-cli.sh fetch -p producer [-v [name=value] ...]
Parameters
Flag | Required | Description |
---|---|---|
p | Yes | The name of an existing producer in the edgeCore pipeline. |
v | No | If set, provide one or more “varName=varValue” entries to set the node variables for the fetch operation. e.g. -v “foo=bar” “code=1337” |
Examples
– Lists the dataset for the producer named Primary:
bin/es-cli.sh --user admin --pass admin fetch -p Primary
Response: building,id,state Building 402,b402,2 Building 211,b211,1 Building 333,b333,1
– Lists the dataset for the producer named Primary passing in a node variable named foo with a value bar:
bin/es-cli.sh --user admin --pass admin fetch -p Primary -v "foo=bar"