Creating Secrets With API

Hey
Is it possible to create secrets using the API? I can find docs for the cli but not the API.

Thanks

I haven’t seen it in the published REST API, but their Go library (which is used for flyctl) makes GraphQL API requests like so: fly-go/resource_secrets.go at main · superfly/fly-go · GitHub

2 Likes

The GraphQL API is mostly for our own use and we might remove that in future.

@tommyd - What do you want to do by creating secrets from API?

I just wondered if it was an option. There are potential workarounds for me.

So I assume if you do remove the graphQL API then I will still be able to allocate IP addresses using some other API as the GraphQL API seems to be the only way at the moment. If you remove that option then I’m stuck :smile:

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