lubien
August 1, 2023, 11:01am
15
We have an API just for that!
Hi there! We’ve been working behind the scenes to migrate the API endpoints for volumes to our Machines API.
This is better for you because our GraphQL API is only hosted in iad region; and when you create a volume in syd region while already nearby (say, deploying a new side project to production from your holiday in Bondi Beach), you shouldn’t need to make a request all the way to iad if it’s just going to come back to a server near you.
It’s faster and more reliable, and it’s already how cr…
Our CLI pretty much uses it for everything when it comes to machines. Soon it will also use that API for volumes. The only thing left out is secrets which you should do through our graphql API for now:
https://api.fly.io/graphql
If you ever wonder how to do something you can always look at the source code of our CLI:
Command line tools for fly.io services