scaleway / scaleway-cli

Command Line Interface for Scaleway
https://www.scaleway.com/en/cli/
Apache License 2.0
887 stars 152 forks source link

Fall back on search on all zones in case the zone is not correct #4125

Open remyleone opened 1 month ago

remyleone commented 1 month ago

When a user is managing many resources across different zones, it can be cumbersome to remember the matching between a particular resource and its location. Instead it would be much more user friendly to look for a ressource in all other zones and answer with a answer from the correct zone.

This feature would be opt-in only and configurable inside the configuration file or through the command line.

If a server XXXX is present in fr-par-1

Command Status
scw instance server get XXXX zone=fr-par-1 OK
scw instance server get XXXX zone=fr-par-2 404
scw instance server get XXXX zone=fr-par-2 --search-all-zones This would trigger a GetServer on all zones on all regions to find if this server exist