调用EnableHighDefinationMonitor接口启用当前地域的秒级监控功能。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | EnableHighDefinationMonitor |
系统规定参数。取值:EnableHighDefinationMonitor。 |
Tags | String | 否 | [{"tagKey":"Key1","tagValue":"Value1"}] |
日志标签。其结构是一个JSON dictionary,包含标签键和标签值。 |
RegionId | String | 是 | cn-hangzhou |
传统型负载均衡的地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 |
LogProject | String | 是 | my-project |
日志服务LogProject的名称。长度为4~63个字符,支持数字、小写字母,可包含短划线(-),开头和结尾必须为数字或字母。 |
LogStore | String | 是 | my-log-store |
日志服务LogStore的名称。长度为2~64个字符,支持数字、小写字母,可包含短划线(-)和下划线(_),开头和结尾必须为数字或字母。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Success | String | true |
本次调用是否成功。取值:
|
RequestId | String | 2F398FF5-B349-5C01-8638-8E9A0BF1DBE6 |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=EnableHighDefinationMonitor
&Tags=[{"tagKey":"Key1","tagValue":"Value1"}]
&RegionId=cn-hangzhou
&LogProject=my-project
&LogStore=my-log-store
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<EnableHighDefinationMonitorResponse>
<Success>true</Success>
<RequestId>2F398FF5-B349-5C01-8638-8E9A0BF1DBE6</RequestId>
</EnableHighDefinationMonitorResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Success" : "true",
"RequestId" : "2F398FF5-B349-5C01-8638-8E9A0BF1DBE6"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
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权限。 |
访问错误中心查看更多错误码。