-
Notifications
You must be signed in to change notification settings - Fork 33
pman command: template page
Rudolph Pienaar edited this page Mar 21, 2017
·
3 revisions
This page is a template for pman
command detail.
These are the preconditions that must be satisfied for the page contents to be valid.
- This page assumes that
pman
is listening on:172.17.0.2:5010
. - Make sure that
pman
has been started (see here for more info):
pman --rawmode 1 --http --port 5010 --listeners 12
This section contains the msg
JSON string transmitted to pman
:
{ "action": "someAction",
"meta": {
"metaVar1": "var1_value",
"metaVar2": "var2_value"
}
}
Start the purl
command with
purl --verb POST --raw --http 172.17.0.2:5010/api/v1/cmd --jsonwrapper 'payload' --msg \
simple copy/paste the above line into a terminal. Do not press enter!
This section describes transmitting the action using purl
:
Append (copy/paste) the following to the purl
prefix command above and hit enter:
' { "action": "someAction",
"meta": {
"metaVar1": "var1_value",
"metaVar2": "var2_value"
}
}'
This documents the return JSON payload from pman
:
{
"someField": "someValue"
}
--30--