Moving an Alarm
Move an alarm in Monitoring to another compartment.
Important
To move resources between compartments, resource users must have sufficient access permissions for the compartment that the resource is being moved to and the current compartment. For more information about permissions for Monitoring resources, see Details for Monitoring.
To move resources between compartments, resource users must have sufficient access permissions for the compartment that the resource is being moved to and the current compartment. For more information about permissions for Monitoring resources, see Details for Monitoring.
When you move an alarm to a new compartment, its associated metrics remain where they are. After you move the alarm to the new compartment, inherent policies apply immediately and affect access to the alarm through the Console. For more information about moving resources, see Moving a Resource Between Compartments.
For alarm troubleshooting, see Troubleshooting Alarms.
- On the Alarm Definitions list page, select the alarm that you want to work with. If you need help finding the list page or the alarm, see Listing Alarms.
- On the alarm's details page, select Move resource.
- In the Move resource dialog box, select the compartment that you want to move the alarm to.
- Select Move resource.
Use the oci monitoring alarm change-compartment command and required parameters to move an alarm:
oci monitoring alarm change-compartment --compartment-id <destination_compartment_OCID> --alarm-id <alarm_OCID>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Monitoring.
Run the ChangeAlarmCompartment operation to move an alarm.