Enforcing target locations
To enforce target locations in your IBM Cloud account, you must configure IBM Cloud Metrics Routing account settings to limit the locations.
Configuring permitted target regions using the UI
You can configure permitted target regions using the IBM Cloud Metrics Routing UI. For more information, see Configuring account settings.
Prereqs
-
Ensure you have the correct IAM permissions to configure IBM Cloud Metrics Routing settings.
-
Log in to IBM Cloud by running the following command: ibmcloud login
Step 1. Get details of your current account settings
Get details of your current account settings. Run the following command:
ibmcloud metrics-router setting get
The setting Permitted target regions list all the locations where you allowed administrators to configure targets in the account.
Step 2.
To manage the list of permitted regions, run the following command:
ibmcloud metrics-router setting update --permitted-target-regions REGIONS
Where REGIONS
define a comma-separated list of regions.
For example, you can run the following command to set 3 regions only:
ibmcloud metrics-router setting update --permitted-target-regions "us-south","us-east","eu-de"