This data source provides the CMS Groups of the current Alibaba Cloud user.
Basic Usage
data "alicloud_cms_alarm_contact_groups" "example" {
name_regex = "tf-testacc"
}
The following arguments are supported:
ids
- (Optional, ForceNew) A list of Alarm Contact Group IDs.name_regex
- (Optional, ForceNew) A regex string to filter results by Alarm Contact Group name. output_file
- (Optional) File name where to save data source results (after running terraform plan
).The following attributes are exported in addition to the arguments listed above:
names
- A list of CMS Alarm Contact Group names.groups
- A list of CMS groups. Each element contains the following attributes:
id
- The ID of the CMS.alarm_contact_group_name
- The name of Alarm Contact Group.contacts
- The alarm contacts in the alarm group.describe
- The description of the Alarm Group.enable_subscribed
- Indicates whether the alarm group subscribes to weekly reports.