Hi everyone, I hope you're all doing well!
I'm currently trying to automate a function, but I haven’t been able to find a way to export service templates similar to how it's done via Surveyor > "Export Configuration".
My goal is to make this functionality available via LCA using IAS, but I'm not sure what the best approach would be.
Could anyone point me to the relevant documentation or guide me on how to achieve this?
Hi Joao,
A possible option is to use the methods available in the web service API to export/import service templates:
Hope it helps.
Hi Joao,
Just to confirm, are you looking to retrieve the services generated by the service templates, rather than exporting the services templates themselves?
Or both?
I’m looking to retrieve the services generated by the Service Templates, not the templates themselves. The goal is to extract the “data:” fields for each service and generate an output similar to the “Export Configuration” file. However, this functionality needs to be made available via LCA, as it is currently only accessible within Cube.
Hi Joao,
How the services are provisioned in the first place? Are you using a CSV file that contains the "input data" columns required to provision the services? Is it not an option to use the same file in your LCA?
We use a CSV file to import and create services. However, when exporting, some fields—such as serviceId and serviceName—are generated by the DMA. The goal is to allow users to retrieve this information, especially when updating a service, since uploading a file without these fields would result in errors and prevent the update from being completed. Additionally, this helps ensure that all users have access to up-to-date information.
Hi Miguel, thank you for your response! I’ve reviewed the Web Services documentation and tested some requests via Postman, but I haven’t been able to find one that returns the same services information as exported by the Surveyor(columns "data:" with it's value of each service).
I've tried the following methods:
https://docs.dataminer.services/develop/webservices/WS_v1/WS_Methods_v1/GetService.html
https://docs.dataminer.services/develop/webservices/WS_v1/WS_Methods_v1/GetServiceDefinition.html
https://docs.dataminer.services/develop/webservices/WS_v1/WS_Methods_v1/GetServicesForServiceTemplate.html
https://docs.dataminer.services/develop/webservices/WS_v1/WS_Methods_v1/GetServiceParameters.html