调用SetAdvancedMonitorState接口设置指定智能接入网关实例的深度监控开关状态。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String SetAdvancedMonitorState

系统规定参数。取值:SetAdvancedMonitorState

RegionId String cn-shanghai

智能接入网关实例所属的地域ID。

您可以通过调用DescribeRegions接口获取地域ID。

SagId String sag-****

智能接入网关实例ID。

Enable Boolean true

是否启用深度监控开关。取值:

  • true:是。
  • false:否。

返回数据

名称 类型 示例值 描述
RequestId String 324223F3-93D3-4CE4-B26F-66C0C3809922

请求ID。

Code String 200

响应码。

Message String Success

响应消息。

示例

请求示例

http(s)://[Endpoint]/?Action=SetAdvancedMonitorState
&RegionId=cn-shanghai
&SagId=sag-****
&Enable=true
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<SetAdvancedMonitorStateResponse>
    <RequestId>324223F3-93D3-4CE4-B26F-66C0C3809922</RequestId>
    <Code>200</Code>
    <Message>Success</Message>
</SetAdvancedMonitorStateResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "324223F3-93D3-4CE4-B26F-66C0C3809922",
  "Code" : "200",
  "Message" : "Success"
}

错误码

HttpCode 错误码 错误信息 描述
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature. 智能接入网关当前版本不支持该功能特性。
403 FeatureNotSupportForActiveSmartAG The current edition of the active smart access gateway does not support this feature. 主智能接入网关的当前版本不支持该功能特性。
403 FeatureNotSupportForStandBySmartAG The current edition of the standby smart access gateway does not support this feature. 备智能接入网关的当前版本不支持该功能特性。

访问错误中心查看更多错误码。