Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API values mismatch with GUI values #52

Closed
rdvansloten opened this issue Dec 5, 2023 · 1 comment
Closed

API values mismatch with GUI values #52

rdvansloten opened this issue Dec 5, 2023 · 1 comment

Comments

@rdvansloten
Copy link

Hi team,

I recently started using PlanetScale after seeing the fantastic YouTube videos that are being posted. I want to use Terraform to deploy my first databases. I know the provider is in early stages, but I am trying to improve the docs on my fork. Problem is, the GUI on the site is giving different values for things like plan and region. For example: eu-west-1 in the portal is actually eu-west in the API. And the "hobby" plan is actually called developer in the API.

I could index these values and amend them to the docs, but to get the other values, I will need to purchase more expensive databases to peek at the API values through my browser network console. Is there any place where all possible values are visible? I would like to contribute where I can.

@mscoutermarsh
Copy link
Member

Hi @rdvansloten,

We now have a public API endpoint with all the current available regions: https://api.planetscale.com/v1/regions.

For plan, it is no longer required by the API as the only option isscaler_pro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants