jwoerner
2 years agoNeophyte
Datasource SDT and REST API
I’d like to write a script to accomplish what we can do in the GUI when creating a new SDT, which is to find a datasource and create a global SDT applied to it.
The REST API v3 shows me that we can only create a DeviceDatasourceSDT, which seems to require the device Id of every resource where the datasource has been applied.
This doesn’t make sense. It seems in order to SDT a datasource in the same way the GUI allows us to do, we must iterate through every single resource and their respective device datasources, locate ones that match the datasource I’d ilke to SDT, then SDT each of the corresponding device datasources.
This is madness. Has anyone accomplished anything useful with a datasource SDT using the REST API?