Problems to call REST end point of EMS
Hi,
I have a edge device where ems/lua is running in a docker container. The edge device is a gateway, what mean other devices are connected to the edge device. EMS is quite normally connected with thingworx. On Thingworx I will add new devices (what mean I will update the config.json) via code. To do this I will use the REST Services that EMS supports ( http://support.ptc.com/help/edge_microserver/r5.4.7/en/index.html#page/edge_microserver%2Fc_ems_wsems_rest_api_details.html%23 ). I test the REST-Calls via curl on the console where EMS is running (in the docker container). In most case of the calls I get error codes back. For example this call
curl -d '{name:EMSBox__DARI}' http://localhost:8000/Thingworx/Things/LocalEms/Services/Restart -v
gives me a 403 Forbidden (note: EMSBox__DARI is my thing based on RemoteThingWithTunnelsAndFileTransfer which is connected to EMS). Other calls like
curl -d '{name:EMSBox__DARI}' http://localhost:8000/Thingworx/Things/LocalEms/Services/GetMicroserverVersion -v
works fine with HTTP-200 OK and the result:
{"rows":[{"result":"5.4.7.864"}],"datashape":{"fieldDefinitions":{"result":{"name":"result","description":"","baseType":"STRING","aspects":{}}}}}
How can I restart the EMS- and Lua-service via the EMS-REST-API?

