调用ListActiveGateways查询今日活跃网关。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListActiveGateways |
系统规定参数。取值:ListActiveGateways。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Array |
活跃网关列表。 |
|
Address | String | 详细地址 |
网关详细地址。 |
AddressCode | Long | 123 |
网关地址码。 |
ChargeStatus | String | NORMAL |
网关欠费状态。
|
City | String | 城市名 |
网关所在城市。 |
CommunicationMode | String | HALF_DUPLEX |
通信模式。 |
Description | String | 网关描述 |
网关描述。 |
District | String | 城区名 |
网关所在城区。 |
FreqBandPlanGroupId | Long | 123 |
频段ID。 |
GisCoordinateSystem | String | GCJ-02 |
网关经纬度所采用的坐标系。 |
GwEui | String | 0000000000123456 |
网关的GwEUI。 |
Latitude | Float | 23.45678 |
纬度。 |
Longitude | Float | 123.45678 |
经度。 |
Name | String | vmeixme |
网关名称。 |
OnlineState | String | ONLINE |
在线状态。 |
RequestId | String | 89EF6CAA-958F-F32C-BE45-FE003C6DE097 |
请求ID。 |
Success | Boolean | true |
是否成功。 |
示例
请求示例
http(s)://linkwan.cn-shanghai.aliyuncs.com/?Action=ListActiveGateways
&<公共请求参数>
正常返回示例
XML
格式
<ListActiveGatewaysResponse>
<Data>
<Gateway>
<City>某某市</City>
<Name>网关名称</Name>
<District>某某区</District>
<OnlineState>ONLINE</OnlineState>
<Longitude>123.45678</Longitude>
<Latitude>23.45678</Latitude>
<Address>详细地址</Address>
<GwEui>0000000000123456</GwEui>
<CommunicateMode>HALF_DUPLEX</CommunicateMode>
<FreqBandPlanGroupId>123</FreqBandPlanGroupId>
<AddressCode>123</AddressCode>
<GisCoordinateSystem>GCJ-02</GisCoordinateSystem>
<Description>网关描述</Description>
</Gateway>
<Gateway>
<City>某某市</City>
<Name>网关名称</Name>
<District>某某区</District>
<OnlineState>ONLINE</OnlineState>
<Longitude>123.45678</Longitude>
<Latitude>23.45678</Latitude>
<Address>详细地址</Address>
<GwEui>0000000001123456</GwEui>
<CommunicateMode>HALF_DUPLEX</CommunicateMode>
<FreqBandPlanGroupId>123</FreqBandPlanGroupId>
<AddressCode>123</AddressCode>
<GisCoordinateSystem>GCJ-02</GisCoordinateSystem>
<Description>网关描述</Description>
</Gateway>
</Data>
<RequestId>89EF6CAA-958F-F32C-BE45-FE003C6DE097</RequestId>
<Success>true</Success>
</ListActiveGatewaysResponse>
JSON
格式
{
"Data":[
{
"Description":"网关描述",
"GisCoordinateSystem":"GCJ-02",
"AddressCode":123,
"City":"某某市",
"Name":"网关名称",
"FreqBandPlanGroupId":123,
"District":"某某区",
"Address":"详细地址",
"Latitude":23.45678,
"Longitude":123.45678,
"OnlineState":"ONLINE",
"CommunicateMode":"HALF_DUPLEX",
"GwEui":"0000000000123456"
},
{
"Description":"网关描述",
"GisCoordinateSystem":"GCJ-02",
"AddressCode":123,
"City":"某某市",
"Name":"网关名称",
"FreqBandPlanGroupId":123,
"District":"某某区",
"Address":"详细地址",
"Latitude":23.45678,
"Longitude":123.45678,
"OnlineState":"ONLINE",
"CommunicateMode":"HALF_DUPLEX",
"GwEui":"0000000001123456"
}
],
"RequestId":"89EF6CAA-958F-F32C-BE45-FE003C6DE097",
"Success":true
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ForbiddenByRam | User not authorized to operate on the specified resource, or this API does not support RAM. | 用户没有执行该操作所需要的RAM权限。 |
400 | ForbiddenByRiskControl | This operation cannot be performed because of security risks. | 存在安全风险,无法执行该操作 |
400 | InternalError | The request processing has failed due to some unknown error, exception or failure. | 内部错误。 |
访问错误中心查看更多错误码。