启用当前地域的秒级监控功能。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
slb:EnableHighDefinationMonitor |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Tags |
string |
否 |
日志标签。其结构是一个 JSON dictionary,包含标签键和标签值。 |
[{"tagKey":"Key1","tagValue":"Value1"}] |
| RegionId |
string |
是 |
传统型负载均衡的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| LogProject |
string |
是 |
日志服务 LogProject 的名称。长度为 4~63 个字符,支持数字、小写字母,可包含短划线(-),开头和结尾必须为数字或字母。 |
my-project |
| LogStore |
string |
是 |
日志服务 LogStore 的名称。长度为 2~64 个字符,支持数字、小写字母,可包含短划线(-)和下划线(_),开头和结尾必须为数字或字母。 |
my-log-store |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Success |
string |
本次调用是否成功。取值:
|
true |
| RequestId |
string |
请求 ID。 |
2F398FF5-B349-5C01-8638-8E9A0BF1DBE6 |
示例
正常返回示例
JSON格式
{
"Success": "true",
"RequestId": "2F398FF5-B349-5C01-8638-8E9A0BF1DBE6"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | OperationNotAllowed.HighDefinitionMonitorEnabled | The operation is not allowed because HighDefinitionMonitor is already enabled in this region. | 当前操作不被允许,当前地域的秒级监控已经被开启。 |
| 400 | UnsupportedFeature.User | The feature of HighDefinationMonitor is not supported. | 当前用户不支持秒级监控功能 |
| 400 | NoPermission.AliyunServiceRoleForSlbLogDelivery | You are not authorized to create the service linked role. Role Name: AliyunServiceRoleForSlbLogDelivery. Service Name: logdelivery.slb.aliyuncs.com. Please ensure the user has been granted the ram:CreateServiceLinkedRole permission | 您没有权限创建服务关联角色,角色名:AliyunServiceRoleForSlbLogDelivery,服务名:logdelivery.slb.aliyuncs.com。请确保已授予当前用户ram:CreateServiceLinkedRole权限。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。