概述

带宽95计费

URL

/index.php?m=api&a=getNineFiveLine

请求参数

s
字段名
变量名
必填
类型
描述
设备ID
id

int
查询的设备ID,type为server时为服务器id,type为cabinet_rent时为机柜租用id,type为switch_port时为上级交换机id,type为image是微带宽id
类型type
string
查询的设备类型,server:服务器,cabinet_rent:机柜租用,switch_port:交换机单端口,image:带宽管理多服务器
上级交换机端口名称switch_namestringtype为switch_port时要查询的上级交换机端口名称

返回参数

字段名
变量名
类型
描述
带宽95计费data
array

today  今日数据 数组(in:进流量,out:出流量,all:总计)

week  最近7天数据 数组(in:进流量,out:出流量,all:总计)

month 本月数据 数组(in:进流量,out:出流量,all:总计)

last_30days  最近30天数据 数组(in:进流量,out:出流量,all:总计)

带宽95计费数据
时间段
type
string
查询的设备类型
提示信息
msg
string
出错信息
状态
status
string
success 成功  error 失败  nosupport  不支持