is there a way in code to be able to get a list of...
# atlantis-community
s
is there a way in code to be able to get a list of locked workspaces? does the atlantis api get this information?
essentially from outside the cluster, i need a way to determine which workspaces are locked. i'm working on drift detection workflow and don't want to detect drift if a workspace is currently in use/locked.
so i don't attempt to run tf plan there
even nicer i suppose would be able to get a list of terraform workspaces that are locked, and have also have had apply run.
p
mmmm I don't think we do
maybe the ui could expose that since it shows all the locks
it will be a good addition to the API
s
yeah the cloud ui hases this information. is there a way to get this output in a json format?
or is this information stored in a state on the atlantis api server?
p
I don't think there is currently an endpoint to get that