Why Am I Seeing a Message Indicating that the cli-region Parameter Is Missing?
Background
When you use Cloud CLI to call cloud service APIs, a proper value of cli-region is required. If you have neither specified the value of cli-region in the command, nor configured it in the current profile, the following error message is displayed:
[USE_ERROR] Specify cli-region.
Solution
- If the value of cli-region is not specified in the command, add --cli-region=${regionValue} to the command and try again.
- If there is a region you often use, run the cloud configure set --cli-profile=${profileName} --cli-region=${regionValue} command to add it to the target profile. When you use the profile again to call an API, you do not need to enter the value of cli-region in the command. However, if the target API is not available in this region, enter --cli-region=${regionValue} in the command to specify a supported region.
Parent topic: Regions
- Background
- Solution