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

Base URL alternative should be configurable via the environment #169

Open
displague opened this issue Feb 22, 2022 · 2 comments
Open

Base URL alternative should be configurable via the environment #169

displague opened this issue Feb 22, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@displague
Copy link
Member

Alternate base URLs, such as the legacy https://api.packet.net/, may be useful during testing.
A --metal-api-base-url argument (for example) would allow a user to override this value. Through Viper, this variable would also be environment and configuration file configurable.

Related packngo issue: equinixmetal-archive/packngo#322

@displague displague added the enhancement New feature or request label Feb 22, 2022
@displague
Copy link
Member Author

https://github.com/equinix/metal-cli/blob/main/cmd/cli.go#L55 could take a cobra/viper config value.

@displague
Copy link
Member Author

displague commented Nov 7, 2022

Today, there was a temporary outage of api.equinix.com that did not affect api.packet.net. The ability to toggle can be handy.

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

No branches or pull requests

1 participant