调用DescribeSagWan4G获取智能接入网关设备WAN 4G网卡信息。

调试

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

请求参数

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

系统规定参数。取值:DescribeSagWan4G

RegionId String cn-shanghai

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

SmartAGId String sag-whfn****

智能接入网关实例ID。

SmartAGSn String sag32a30****

绑定的智能接入网关设备序列号。

返回数据

名称 类型 示例值 描述
Status String Normal

4G网卡状态:

  • Normal:状态正常。
  • Abnormal:状态异常。
  • Unavailable:无4G网卡。
TrafficState String active

4G网卡流量状态。

  • active:表示该4G网卡为主用链路,当前流量经过该4G网卡进行传输。
  • standby:表示该4G网卡为备用链路,暂不转发流量。在主用链路故障后,流量经过该4G网卡进行传输。
RequestId String CE6642D4-21EB-4168-9BF9-F217953F9892

请求ID。

Priority Integer 99

4G网卡优先级。优先级默认值为99,表示最低优先级,且优先级不支持调整。

Ip String 192.XX.XX.1

4G网卡IP地址。

Strength String High

4G信号强度:

  • High:强。
  • Middle:中。
  • Low:弱。
  • Unavailable:无信号。
Mac String c4:00:ad:a2:f5:****

4G网卡MAC地址。

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeSagWan4G
&RegionId=cn-shanghai
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&公共请求参数

正常返回示例

XML格式

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

<DescribeSagWan4GResponse>
    <Status>Normal</Status>
    <TrafficState>active</TrafficState>
    <RequestId>CE6642D4-21EB-4168-9BF9-F217953F9892</RequestId>
    <Priority>99</Priority>
    <Ip>192.XX.XX.1</Ip>
    <Strength>High</Strength>
    <Mac>c4:00:ad:a2:f5:****</Mac>
</DescribeSagWan4GResponse>

JSON格式

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

{
  "Status" : "Normal",
  "TrafficState" : "active",
  "RequestId" : "CE6642D4-21EB-4168-9BF9-F217953F9892",
  "Priority" : 99,
  "Ip" : "192.XX.XX.1",
  "Strength" : "High",
  "Mac" : "c4:00:ad:a2:f5:****"
}

错误码

HttpCode 错误码 错误信息 描述
400 SAG.InstanceNoFound The specified SAG instance does not exist. 智能接入网关实例不存在。
400 SAG.SoftwareNotSupport The specified SAG software edition instance does not support ACL. 智能接入网关软件版实例不支持ACL。
400 InstanceNotExit The specified instance does not exist. 指定的实例不存在。
400 ConfigUnsynchronized The network configuration is not synchronized. 网络配置未同步。
400 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. 该智能接入网关已经到期停服,请续费。
400 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. 该智能接入网关尚未激活,请先激活该实例。
400 SmartAccessGatewayOffline The request cannot be completed. The Smart Access Gateway is offline. 智能接入网关离线,请求无法完成。
403 SmartAccessGatewayNotOnline The specified smart access gateway is not online. 该智能接入网关当前不是在线状态,无法完成操作。
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. 备智能接入网关的当前版本不支持该功能特性。

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