调用GetAdvancedMonitorState接口查询指定智能接入网关实例的深度监控开关状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetAdvancedMonitorState | 系统规定参数。取值:GetAdvancedMonitorState。 |
SagId | String | 是 | sag-asdfz6ac74oj5v**** | 智能接入网关实例ID。 |
RegionId | String | 是 | cn-shanghai | 智能接入网关实例所属的地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 324223F3-93D3-4CE4-B26F-66C0C3809922 | 请求ID。 |
Code | String | 200 | 响应码。 |
Message | String | Success | 响应消息。 |
Data | Array of state | ||
Enable | Boolean | true | 是否已开启深度监控开关。取值:
|
示例
请求示例
http(s)://[Endpoint]/?Action=GetAdvancedMonitorState
&SagId=sag-asdfz6ac74oj5v****
&RegionId=cn-shanghai
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<GetAdvancedMonitorStateResponse>
<RequestId>324223F3-93D3-4CE4-B26F-66C0C3809922</RequestId>
<Code>200</Code>
<Message>Success</Message>
<Data>
<Enable>true</Enable>
</Data>
</GetAdvancedMonitorStateResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "324223F3-93D3-4CE4-B26F-66C0C3809922",
"Code" : "200",
"Message" : "Success",
"Data" : [ {
"Enable" : true
} ]
}
错误码
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. | 备智能接入网关的当前版本不支持该功能特性。 |
访问错误中心查看更多错误码。