Getting an Alarm's Details
Get details for an alarm in Monitoring.
Before You Begin
IAM policies: To get alarm details, you must be given the required type of access in a policy written by an administrator. This requirement applies whether you're using the Console or the REST API with an SDK, CLI, or other tool. If you get a message that you don't have permission or are unauthorized, check with the administrator. You might not have the required type of access in the current compartment .
Administrators: For an example policy, see Get Alarm Details and History.
- 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.
Use the oci monitoring alarm get command and required parameters to get details for an alarm:
oci monitoring alarm get --alarm-id <alarm_OCID>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Monitoring.
Run the GetAlarm operation to get details for an alarm.