查询时刻网络带宽__资源监控接口_API 手册_CDN-阿里云
描述
获取加速域名的在某个时刻不同Locate和Isp上的带宽数据,单位 bit/second
- 不支持批量域名查询
- 时间精确到5分钟粒度
请求参数
参数 | 类型 | 必要 | 描述 |
---|---|---|---|
Action | String | 是 | 操作接口名,系统规定参数 取值:DescribeDomainBpsDataByTimeStamp |
DomainName | String | 是 | 要查询的域名,不能为空; |
LocationNames | String | 是 | 需要查询目标节点列表,用“,”隔开,不能为空; Location名通过DescribeCdnRegionAndIsp接口获得; |
IspNames | String | 是 | 需要查询目标Isp列表,用“,”隔开,不能为空; ISP名通过DescribeCdnRegionAndIsp接口获得; |
TimePoint | String | 是 | 查询目标时间点,日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mmZ 最小数据粒度为5分钟 |
返回参数
名称 | 类型 | 描述 |
---|---|---|
DomainName | String | 加速域名信息 |
TimePoint | String | 时间点 |
BpsDataList | BpsDataModel[] | 每个Locate、ISP对应的bps值 |
BpsDataModel
名称 | 类型 | 描述 |
---|---|---|
LocationName | String | 节点名 |
IspName | String | Isp名 |
Bps | Long | 对应的带宽值 |
特殊错误码
错误代码 | 描述 | Http 状态码 | 语义 |
---|---|---|---|
Throttling | Request was denied due to request throttling. | 503 | 请求被流量控制限制 |
IllegalOperation | Illegal domain, operation is not permitted. | 403 | 非法域名, 无法操作 |
OperationDenied | Your account does not open CDN service yet. | 403 | 未开通CDN服务 |
OperationDenied | Your CDN service is suspended. | 403 | CDN服务已被停止 |
InvalidDomain.NotFound | The domain provided does not belong to you. | 404 | 域名不存在或不属于当前用户 |
InvalidDomain.Offline | The domain provided is offline. | 404 | 域名已下线 |
ServiceBusy | The specified Domain is configuring, please retry later. | 403 | 域名正在配置中, 请稍后再试 |
InvalidTimePoint.Malformed | Specified TimePoint malformed. | 400 | TimePoint格式错误 |
InvaildParameter | IspNames Not Supported | 400 | ISP不支持 |
InvaildParameter | LocationNames Not Supported | 400 | Location不支持 |
示例
请求示例:
https://cdn.aliyuncs.com?Action=DescribeDomainBpsDataByTimeStamp&DomainName=abc.com
&LocationIds=liaoning,guangxi
&IspIds=unicom,telecom
&TimeStamp=2016-08-01T22:00Z
&<公共请求参数>
返回示例:
JSON格式
{
"TimeStamp": "2016-08-01T22:00Z",
"BpsDataList": {
"BpsDataModel": [
{
"LocationName": "Liaoning",
"Bps": 880996111,
"IspName": "telecom"
},
{
"LocationName": "Liaoning",
"Bps": 52119553,
"IspName": "unicom"
},
{
"LocationName": "Guangxi",
"Bps": 51295137,
"IspName": "telecom"
},
{
"LocationName": "Guangxi",
"Bps": 18673571,
"IspName": "unicom"
}
]
},
"RequestId": "7682DE14-3B4D-48D0-9B7C-DD3C8C3E1C78",
"DomainName": "abc.cn"
}
XML格式:
<?xml version="1.0" ?>
<DescribeDomainBpsDataByTimeStampResponse>
<TimeStamp>2016-08-01T22:00Z</TimeStamp>
<BpsDataList>
<BpsDataModel>
<LocationName>Liaoning</LocationName>
<IspName>telecom</IspName>
<Bps>880996111</Bps>
</BpsDataModel>
<BpsDataModel>
<LocationName>Liaoning</LocationName>
<IspName>unicom</IspName>
<Bps>52119553</Bps>
</BpsDataModel>
<BpsDataModel>
<LocationName>Guangxi</LocationName>
<IspName>unicom</IspName>
<Bps>51295137</Bps>
</BpsDataModel>
<BpsDataModel>
<LocationName>Guangxi</LocationName>
<IspName>unicom</IspName>
<Bps>18673571</Bps>
</BpsDataModel>
</BpsDataList>
<RequestId>AA2981FF-1A30-4590-B929-88FC85E12A8B</RequestId>
<DomainName>abc.cn</DomainName>
</DescribeDomainBpsDataByTimeStampResponse>
最后更新:2016-11-23 17:16:09
上一篇:
获取区域和运营商列表__资源监控接口_API 手册_CDN-阿里云
下一篇:
查询区域运营商资源信息__资源监控接口_API 手册_CDN-阿里云
Logtail配置__公共资源说明_API-Reference_日志服务-阿里云
当前支持的 Redis 版本___FAQ_云数据库 Redis 版-阿里云
管理挂载点__文件系统和挂载点_用户指南_文件存储-阿里云
添加已有云服务器__集群管理_用户指南_容器服务-阿里云
AssumedRoleUser__数据类型_STS API文档_访问控制-阿里云
PullLogs__日志库相关接口_API-Reference_日志服务-阿里云
如何查看主机管理控制台用户名和密码?__产品验证_备案流程_备案-阿里云
线路说明___购买指导_DDoS 高防IP-阿里云
BatchGetRow__API 概览_API 参考_表格存储-阿里云
步骤 1:购买 Linux 实例__搭建 WordPress 网站_建站教程_云服务器 ECS-阿里云
相关内容
常见错误说明__附录_大数据计算服务-阿里云
发送短信接口__API使用手册_短信服务-阿里云
接口文档__Android_安全组件教程_移动安全-阿里云
运营商错误码(联通)__常见问题_短信服务-阿里云
设置短信模板__使用手册_短信服务-阿里云
OSS 权限问题及排查__常见错误及排除_最佳实践_对象存储 OSS-阿里云
消息通知__操作指南_批量计算-阿里云
设备端快速接入(MQTT)__快速开始_阿里云物联网套件-阿里云
查询API调用流量数据__API管理相关接口_API_API 网关-阿里云
使用STS访问__JavaScript-SDK_SDK 参考_对象存储 OSS-阿里云