调用ListNodeGroupTransferFlowStats查询节点组流量统计列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
|---|---|---|---|---|
| Action | String | 是 | ListNodeGroupTransferFlowStats | 
                               系统规定参数。取值:ListNodeGroupTransferFlowStats。  | 
                           
                        
| BeginMillis | Long | 是 | 1514736000000 | 
                               查询开始时间,毫秒为单位的UNIX时间戳。  | 
                           
                        
| EndMillis | Long | 是 | 1514737000000 | 
                               查询结束时间,毫秒为单位的UNIX时间戳。  | 
                           
                        
| NodeGroupId | String | 是 | 123 | 
                               节点组ID。  | 
                           
                        
| TimeIntervalUnit | String | 是 | INTERVAL_IN_HOURS | 
                               时间间隔的单位。取值: 
  | 
                           
                        
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| Data | 
                               流量统计列表。  | 
                           
                        ||
| DownlinkCount | Long | 1010 | 
                               该时间段的下行数据包数量。  | 
                           
                        
| StatMillis | Long | 1514736000000 | 
                               统计UNIX时间戳, 以毫秒为单位。  | 
                           
                        
| UplinkCount | Long | 10 | 
                               该时间段的上行数据包数量。  | 
                           
                        
| RequestId | String | 89EF6CAA-958F-F32C-BE45-FE003C6DE097 | 
                               请求ID。  | 
                           
                        
| Success | Boolean | true | 
                               是否成功。  | 
                           
                        
示例
请求示例
http(s)://linkwan.cn-shanghai.aliyuncs.com/?Action=ListNodeGroupTransferFlowStats
&BeginMillis=1514736000000
&EndMillis=1514737000000
&NodeGroupId=123
&TimeIntervalUnit=INTERVAL_IN_HOURS
&<公共请求参数>
                  正常返回示例
XML 格式
                  
<ListNodeGroupTransferFlowStatsResponse>
        <Data>
                <FlowStat>
                        <UplinkCount>10</UplinkCount>
                        <DownlinkCount>10</DownlinkCount>
                        <StatMillis>1514736000000</StatMillis>
                </FlowStat>
                <FlowStat>
                        <UplinkCount>10</UplinkCount>
                        <DownlinkCount>10</DownlinkCount>
                        <StatMillis>1514736000000</StatMillis>
                </FlowStat>
        </Data>
        <RequestId>89EF6CAA-958F-F32C-BE45-FE003C6DE097</RequestId>
        <Success>true</Success>
</ListNodeGroupTransferFlowStatsResponse>
                  JSON 格式
                  
{
	"Data":[
		{
			"DownlinkCount":10,
			"UplinkCount":10,
			"StatMillis":1514736000000
		},
		{
			"DownlinkCount":10,
			"UplinkCount":10,
			"StatMillis":1514736000000
		}
	],
	"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 | NonExistent | The specified resource does not exist. | 要操作的资源不存在。 | 
| 400 | CloudProductNotActivated | The Link WAN service has not been activated. | 未开通 Link WAN 云产品 | 
| 400 | FeatureNotActivated | The feature has not been activated. | 功能未开通 | 
| 400 | InternalError | The request processing has failed due to some unknown error, exception or failure. | 内部错误。 | 
| 400 | NotResourceOwner | You are not authorized to use this resource. | 无权访问此资源 | 
访问错误中心查看更多错误码。