GET Process File API

The GET Process file APT to get process file details for the given process file name.

Method URI

GET

cdwebconsole/svc/processlibrary

The following example shows the Command:
curl -X 'GET' \
            'https://172.20.183.89:9443/cdwebconsole/svc/processlibrary?processFileName=Sample.cdp' \
            -H 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODYuMjAzOjEzNjM6N2JlMWQ3MDctYTA0YS00MjllLTgzNjAtODcxZmQxOWU5ZDg4IiwiZXhwIjoxNzE1MTQ4MzM1fQ.EUdN8B19au-UHsp4xZ-RBL493m7glptJee-WLG70LdUomGkKefU-DPvjv_G-yKYOPvvoGB-ToIj0GUj8iDZ_tA' \
            -H 'Content-Type: application/json' \
            -H 'X-XSRF-TOKEN: f1f4b271-e539-48a4-9d3c-902c045e38bf'
Table 1. Input Parameters
Parameter Name Required/Optional Description Valid values

processFileName

Required

Specifies the fully qualified name of process file

Validation: String

 
The following example shows the Sample Response:
[
  {
    "processFile": "/*BEGIN_REQUESTER_COMMENTS\n    $PNODE$=\"CD2151W\" $PNODE_OS$=\"Windows\"\n    $SNODE$=\"CD2151W\" $SNODE_OS$=\"Windows\"\n    $OPTIONS$=\"WDOS\"\n  END_REQUESTER_COMMENTS*/\n \nSAMPLE PROCESS\n    SNODE=CD2151W\n \n/*Specify a valid COPY TO destination folder where\nthe (remote) user has permission to create and write the file.\nMight not always be true for the ServerDownload folder when\nConnect:Direct was installed in the default location\nunder Program Files.*/\n \nSTEP1 COPY\n    FROM (\n        FILE=\"C:\\Program Files\\IBM\\Connect Direct v6.3.0\\Server\\Process\\Sample.cdp\"\n)\n    TO (\n        FILE=\"C:\\Program Files\\IBM\\Connect Direct v6.4.0\\Server\\Download\\Verify.cdp\"\n        DISP=RPL\n)\nPEND\n"
  }
]