IBM Sterling Connect:Direct : Usando a REST API do C:D WebService
- /cdwebconsole/svc/signon --> Login url
- /cdwebconsole/svc/signout --> Logout url
- /cdwebconsole/svc/processcontrolcriterias --> Submit Process
- /cdwebconsole/svc/selectstatistics --> Select Statistcs
REST API matrix
RESTful API | Url | Create (POST) | Read (GET) | Update/Replace (PUT) | Delete (DELETE) |
---|---|---|---|---|---|
Init Parms | - | N | Y | Y | N |
List Directories | - | N | Y | N | N |
Message Lookup | - | N | Y | N | N |
Native | - | Y | N | N | N |
Netmap Description | - | Y | Y | N | N |
Netmap Node | - | Y | Y | Y | Y |
Netmap Path | - | Y | Y | Y | Y |
Process Control Services Submit/Change/Select/ Suspend/Delete Process |
/cdwebconsole/svc/processcontrolcriterias | Y | Y | Y | Y |
Secure Plus CipherSuites | - | N | Y | N | N |
Secure Plus Node Service | - | Y | Y | Y | Y |
Secure Plus Key Certificate | - | Y | Y | Y | Y |
Secure Plus Trusted Certificate | - | Y | Y | Y | Y |
Select Statistics | /cdwebconsole/svc/selectstatistics | N | Y | N | N |
Stop Node | - | Y | N | Y | N |
Tracing | - | N | Y | Y | N |
Translation | - | N | Y | Y | N |
User Authority | - | Y | Y | Y | Y |
User Proxy | - | Y | Y | Y | Y |
Process Library | - | Y | Y | Y | Y |
FileAgent Rule | - | Y | Y | Y | Y |
FileAgent Watch Directory | - | Y | Y | Y | Y |
FileAgent Configuration | - | Y | Y | Y | N |
FileAgent Configuration Export | - | N | Y | N | N |
FileAgent Configuration Import | - | Y | N | N | N |
FileAgent Configuration Apply Changes | - | N | N | Y | N |
Envia arquivos via Rest API
Send file
{"processFile": "PP PROCESS \n SNODE=CDDEST \n STEP2 COPY \n FROM ( \n FILE=/connectd/cdinstall/ndm/cfg/msgfile.cfg \n ) \n TO ( \n FILE=/connectd/cdinstall/work/cddelete.me \n DISP=RPL \n ) \n PEND"}
Send file
{ "processFile": "/opt/cdunix/scripts/send_process.cdp" }
Details
Select Statistics
GET /cdwebconsole/svc/selectstatistics?processNumber=126