查询报警屏蔽详情
更新时间:2026-06-26
查询报警屏蔽规则
查询单条报警屏蔽规则的详细信息。
API Explorer
去调试
您可以在 API Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,API Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1POST /v3/bcm?action=DescribeAlarmMasking HTTP/1.1
2Host: bcm.bj.baidubce.com
3Authorization: authorization string
4
5{
6 "id": "masking-abcdef123456"
7}
请求头域
除公共头域外,无其他特殊头域
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号,当前取值为v3 |
| id | String | 是 | RequestBody参数 | 屏蔽规则ID |
返回状态码
成功返回200,失败返回见错误码
返回头域
除公共头域外,无其他特殊头域
返回参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| id | String | 屏蔽规则ID |
| createdTime | String | 创建时间 |
| updatedTime | String | 更新时间 |
| state | String | 屏蔽规则状态,ENABLED/DISABLED |
| name | String | 屏蔽规则名称 |
| scope | String | 云产品命名空间 |
| resourceType | String | 资源类型 |
| policyId | String | 报警策略ID |
| instances | List<TargetInstance> | 屏蔽的实例列表 |
| region | String | 地域 |
| metricNames | List |
屏蔽的指标名称列表 |
| periodType | String | 屏蔽时间类型,FOREVER/FIXED/RELATIVE |
| beginTime | String | 屏蔽开始时间 |
| endTime | String | 屏蔽结束时间 |
| tz | String | 时区 |
| dailyBeginTimestamp | Integer | 每日屏蔽开始时间戳 |
| dailyEndTimestamp | Integer | 每日屏蔽结束时间戳 |
请求示例
Plain Text
1POST /v3/bcm?action=DescribeAlarmMasking HTTP/1.1
2HOST bcm.bj.baidubce.com
3Authorization bce-auth-v1/accessKeyId/2024-10-11T10:00:00Z/1800/host/signature
4
5{
6 "id": "masking-abcdef123456"
7}
响应示例
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 8a3b5c7d-1234-5678-abcd-ef0123456789
3Date: Fri, 11 Oct 2024 10:10:30 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7
8{
9 "id": "masking-abcdef123456",
10 "createdTime": "2024-10-01T08:00:00Z",
11 "updatedTime": "2024-10-11T10:00:00Z",
12 "state": "ENABLED",
13 "name": "masking-test",
14 "scope": "BCE_BCC",
15 "resourceType": "Instance",
16 "policyId": "policy-abc123",
17 "instances": [
18 {
19 "region": "bj",
20 "identifiers": [
21 {"name": "instanceId", "value": "i-xxx"}
22 ]
23 }
24 ],
25 "region": "bj",
26 "metricNames": ["CPUUsagePercent"],
27 "periodType": "FIXED",
28 "beginTime": "2024-10-11T10:00:00Z",
29 "endTime": "2024-10-11T12:00:00Z",
30 "tz": "Asia/Shanghai",
31 "dailyBeginTimestamp": null,
32 "dailyEndTimestamp": null
33}
评价此篇文章
