2.0 pfdcm hello - FNNDSC/pfdcm GitHub Wiki

pfdcm command: hello

Abstract

This page describes the hello command to pfdcm. It is used to simply test if a pfdcm service is running.

Preconditions

  • This page assumes that pfdcm is listening on: ${HOST_IP}:4055.
pfdcm --forever --httpResponse

msg summary

The msg payload of the REST interaction with pfdcm is:

 {  "action": "hello",
         "meta": {
                 "askAbout":     "sysinfo",
                 "echoBack":     "Hi there!",
         }
 } 

hello

pfurl calling syntax

Assuming satisfied preconditions, let's say hello to pfdcm.

pfurl   --verb POST                             \
        --raw                                   \
        --http ${HOST_IP}:4055/api/v1/cmd       \
        --jsonwrapper 'payload'                 \
        --msg '{  
            "action": "hello",
            "meta": {
                "askAbout":     "sysinfo",
                "echoBack":      "Hi there!"
            }
        }'

--30--