云防火墙 CFW-修改告警配置接口:请求示例

时间:2025-01-03 10:45:20

请求示例

配置项目id为408972e72dcd4c1a9b033e955802a36b的防火墙告警,防火墙id为8de37729-026d-412f-ba82-80c46f388d14。告警类型为1,告警时间周期为0,启用状态为0,严重程度为0。告警策略为防护带宽使用率达到80%时,每天告警一次。告警名称为test-wyl,主题URN为urn:smn:cn-north-7:408972e72dcd4c1a9b033e955802a36b:test-wyl。

https://{Endpoint}/v1/408972e72dcd4c1a9b033e955802a36b/cfw/alarm/config?fw_instance_id=8de37729-026d-412f-ba82-80c46f388d14

{
  "alarm_time_period" : 0,
  "alarm_type" : 1,
  "enable_status" : 0,
  "severity" : "0",
  "frequency_count" : 1,
  "frequency_time" : 1,
  "topic_urn" : "urn:smn:cn-north-7:408972e72dcd4c1a9b033e955802a36b:test-wyl"
}
support.huaweicloud.com/api-cfw/UpdateAlarmConfig.html