Scripts
List the saved scripts
Return your company’s saved scripts as JSON — id, name, and the platforms each one can run on. Use this to discover a scriptId before calling runScript or runDeviceScript. To add the ready-made scripts Primo maintains for a known issue, use addRemediationKit.
A script’s platforms come from its file extension: .sh (macOS + Linux), .py (macOS + Linux), .ps1 (Windows).
To read a script’s source, use getScript. To see what has actually been run, use getScriptRuns instead.
List the saved scripts