调用EnableMetricRuleBlackList接口启用或禁用报警黑名单策略。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Id | string | 是 | 报警黑名单策略的 ID。多个 ID 之间以半角逗号(,)分隔,且不能超过 50 个。 关于如何获取报警黑名单策略的 ID,请参见 DescribeMetricRuleBlackList 。 说明
该参数也支持 JSON Array 格式,例如: ["a9ad2ac2-3ed9-11ed-b878-0242ac12****","5cb8a9a4-198f-4651-a353-f8b28788****"] 。
| a9ad2ac2-3ed9-11ed-b878-0242ac12**** |
IsEnable | boolean | 是 | 启用或禁用报警黑名单策略。取值:
| true |
关于公共请求参数的详情,请参见公共参数。
返回参数
示例
正常返回示例
JSON
格式
{
"Code": 200,
"Message": "The specified resource is not found.",
"RequestId": "94869866-1621-3652-BBC9-72A47B2AC2F5",
"Success": true,
"Count": 1
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ParameterInvalid | Illegal parameters. | - |
403 | AccessForbidden | User not authorized to operate on the specified resource. | - |
404 | ResourceNotFound | The specified resource is not found. | 未找到指定资源。 |
409 | ResourceConflict | Concurrent modification of resources. | - |
409 | ResourceExist | Resources already exist. | - |
500 | InternalError | The request processing has failed due to some unknown error. | - |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2022-06-22 | 新增 OpenAPI | 查看变更详情 |