Is there an api endpoint for getting releases?

i.e.: fly apps releases -a foo -j | jq '.[0].Version'.

I’d like to get some release version and image names. I know I can get the latest version by listing machines, but not past versions:

curl --request GET \
  --url https://api.machines.dev/v1/apps/__APP_NAME__/machines

there isn’t a Machines API endpoint for it, it’s just in graphql at the moment. (you can look at the source code of fly-go https://github.com/superfly/fly-go/blob/e2fc7e015a5943359a568d8e079125534ca794c8/resource_releases.go#L5)

I’m not sure how we’d add it to Machines API :thinking:

1 Like

Maybe something like:

https://api.machines.dev/v1/apps/__APP_NAME__/machines/__MACHINE_ID__/releases

ah, you can probably do what you need with the List Machine Versions endpoint then.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.