2019-11-27 20:43:55 UTC
I have some basic questions about using the Rest Server API - this one:
My goal is very modest. I just want to write a python script that will do some basic things like
a) get all configs
b) determine if given config/AL is running
c) stop a given Config/AL
d) start a Config/AL
e) shutdown the server
By hacking around I can do some of this via 'curls' to the web.server.port, for example:
http://10.176.112.170:1098/rest/ci . --> nice JSON response.
However, I cannot figure out (from Doc) how to stop/start a Config/AL Perhaps it done with with query parms to ../control ?
If you have a whole bunch of curl examples that would be wonderful.
Also, is it possible to send Rest API requests to the 'api.remote.naming.port' ?
I ask because our environment has quite a few TDI server processes - like 30 or so. All of these have a unique api.remote.naming.port - but they also all have web.server.port=1098. (Yes, I could change that but kind of a pain.)