Enforcing default targets
You can configure 1 or more default targets for events that are not explicitly managed in the Activity Tracker Event Routing account's routing rules.
Prereqs
-
Check that you have IAM permissions to read and update the Activity Tracker Event Routing account settings.
Role | Minimum scope | Minimum required roles | Action |
---|---|---|---|
atracker.setting.get |
Account | Administrator Editor Viewer Operator |
Get setting information |
atracker.setting.update |
Account | Administrator |
Update settings |
Next, log in to IBM Cloud. Run the following command: ibmcloud login
Step 1. Identify targets
Get the list of targets that are defined in the account. Run the following command:
ibmcloud atracker target ls
Copy the ID value of the targets that you want to configure in the account.
Step 2. Check your current account settings
To check your account's configuration and find out if there are default targets configured, run the following command:
ibmcloud atracker setting get
The setting Default targets lists any targets in the account that have been configured as default targets.
Step 3. Configure default targets
Check the list of IDs for the targets that you want to configure and identify the ones that are not configured. Then, run the following command to configure the default targets in the account:
When you run the command, make sure that you include the target IDs of all the default targets in the account. The command replaces the exiting configuration with the new one.
ibmcloud atracker setting update --default-targets TARGETS
Where TARGETS
represent the list of comma-separated target IDs.