I have several ctrlX Cores and want to update a file within a configuration of an app. Via REST (implemented in a python script on a remote server) I want to update all of my Cores in the network with a new flows.json file. I already can create a new configuration via REST but my goal is to update files within an already existing configuration. How can this be accomplished?
This is just an example. In future I want to also update other app's configurations on serveral Cores at once.
Solved! Go to Solution.
Please have a look to the corresponding API documentation (in preperation) or the sweager UI located on the ctrlX CORE itself:
The actual functionality is quite limited but will also be extended step by step.
EDIT: Please beware that there will be major changes to this API in the next releases.
I used the API already and got to the point I described in my question. The API allows me to manipulate solutions and configurations. My question is how can I manipulate or add files inside a configuration?
So to be clear the answer is: At the moment it is not possible. But with an later version of this interface it will be.
Here an update to your topic:
from our release RM21.07 (v1.10) end of July on it will be possible to manipulate the files and file structure of the configuration backups via the WebDAV protocol. Also the documentation will be available from then on.
from our release RM21.11 (v1.12) end of November on there will some some folders/files in the active configuration also manipulateable.
Where can we find the Documentation to use WebDAV/ what is the adress of the WebDAV server we have to use to connect to it using said Protocol?
Is there a possibility to look at the actual commands (i.e. PROPFIND body and adresses) that WinSCP uses to change files?
I want to write my own commands/Webserver to communicate with the WebDAV server, however it is hard to find the exact commands needed to copy what WinSCP does by itself already.
it seems there is a WebDAV connection to CtrlX. But, what is shown?
There's a /root folder, but blank. What I nedd is a connection to the SD to make new folders and to copy files (.par - files for drives).
How to access the SD with PLC?
Is this "/media/mmcblk1p1" the path for the SD? But I think "mmcblk1p1" is a specific name of the SD, so another SD has another name? Is there a possibility of a fixed path?
Please have a look to the screenshot above for the path in WebDAV "/solutions/webdav/appdata". This is the path for the active configuration on the ctrlX CORE.
The name "mmcblk1p1" is given automatically by Ubuntu and is not the name user can choose.