SOLVED API Call Equivalent to "Launch Docker Image" Button

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161
Does anyone know if there's an API call that is the equivalent of the "Launch Docker Image" button in the GUI? Somewhat related, is there any documentation on the API in TrueNAS Scale? Online I can only find the API docs for TrueNAS Core.

Thanks,
Harry
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Well, if I go to the API Keys section and use the Docs link on that page of my SCALE box I see documentation for APIs including gluster, so must be for SCALE (since there's no gluster on CORE).

I haven't immediately found the section for apps, but as I understand it, the GUI is all API calls in the backend, so it should be possible somehow.

EDIT: I don't know how I missed that there's a kubernetes section... there is.
 
Last edited:

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161
So after lots of research I figured out the correct API call. It's chart.release.create. It's the same API call that is used when adding an application from a catalog, however, the key difference seems to be that the value for the catalog item used in the API call is "ix-charts" which according to another API call is described as "A Helm chart for deploying simple workloads Kubernetes".

Thanks,
Harry
 
Top