Schedule a Script Job using API
Currently, there does not appear to be a way to schedule the execution of a script job with API.
I need this to continue implementing a Terraform provider dedicated to SimpleMDM.
It would be nice if that was added during the creation of a Script Job in the API. The goal would be to have the three prossibilites offers by the UI like :
- Run ASAP
- Run later
- Run reccuringly
The API documentation mentions that a job can be canceled. However, since scheduling a job is not currently supported, this functionality seems limited.
-
David K. commented
Hey Robin,
Tom did huge jobs with implementing it script jobs to TF provide, new version with slightly limited options was published few minutes ago.
https://github.com/DavidKrau/terraform-provider-simplemdm
David.
-
David K. commented
I would add to original request one small part and that is returning of script_id in API answer after creation and when reading given job.
https://api.simplemdm.com/#create-8
https://api.simplemdm.com/#retrieve-one-12Currently API responses can not be compared to original create request which needs script_id as input variable.
Thank you David.
-
Robin CHESNE commented
Having a terraform provider would be a strong selling point for entreprise customers!