名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/profileDetail -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60"}' 返回字段解释: type: 加速类型 type_zh: 加速类型名称 billtype: 计费类型 billtype_zh: 计费类型名称
{
"code": 1,
"message": "操作成功",
"created": "2015年03月21日 13:09:51",
"data": [
{
"type": "cloud",
"type_zh": "云分发",
"billtype": "total",
"billtype_zh": "总流量"
},
{
"type": "static",
"type_zh": "静态加速",
"billtype": "total",
"billtype_zh": "总流量"
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 频道ID | |
type | int | 加速类型,取值范围[cloud(云分发),download(下载),hls(HLS),music(音视),live(直播),static(静态)] | |
mark | int | 是否星标域名,取值范围[1(是),0(否)] | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1}' 返回字段解释: id: 频道ID uid: 用户ID sub_uid: 子账号 username: 用户名 name: 频道名称 monitorurl: 监控URL mark: 星标 type: 加速类型 type_zh: 加速类型名称 origin_sty: 源站策略 tx: 带宽 reqs: 请求数 tpr: 响应 ip: 源站IP,键为IP地址,值为端口号 icp: ICP备案号 cname: CName powerheader: powered-by头 inputType: 直播加速输入方式 isflv: 是否开启flv,直播加速有效 ishls: 是否开启hls,直播加速有效 cacheconf: 缓存策略 siteinfo: 网站类型 sslconf_id: SSL证书ID sslconf_name: SSL证书名称 ssl_redirect: 强制HTTPS访问,0否、1是 vcorigin: 启用伪源,0否、1是. originback: 备份源站,键为IP地址,值为端口号 cachetype: 缓存类型 status: 状态 status_zh: 状态名称 note: 备注 createtime: 创建时间 createtime_ago: 创建时间
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "1852123456",
"name": "www.verycloud.cn",
"monitorurl": "",
"mark": "1",
"type": "cloud",
"type_zh": "云分发",
"tx": "-",
"reqs": "-",
"tpr": "-",
"ip": {
"192.168.1.2": ""
},
"icp": "苏ICP备13055954号-1",
"cname": "www.verycloud.cn.verygslb.com",
"cacheconf": [
{
"pattern": "html,htm,shtml,txt,js,css,jpg,jpeg,gif,png,bmp,iso",
"ttl": 7,
"unit": "d",
"type": "cacheHome",
"path": ""
},
{
"pattern": "",
"ttl": 0,
"unit": "",
"type": "noCache",
"path": "/test2/"
},
{
"pattern": "",
"ttl": 1,
"unit": "d",
"type": "cache",
"path": "/"
}
],
"siteinfo": "网上商城",
"sslconf_id": "0",
"sslconf_name": "",
"ssl_redirect": "0",
"origin_sty": "null",
"vcorigin": "0",
"originback": {
"192.168.1.2": ""
},
"cachetype": "custom",
"status": "1",
"status_zh": "开启",
"note": "",
"createtime": "2015-01-23 13:38",
"createtime_ago": "1月前",
"endtime": "0"
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 1,
"created": "2015年03月20日 16:47:57"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
name | string | 加速频道 | |
type | string | 加速类型,取值范围[cloud(云分发),download(下载),hls(HLS),music(音视),live(直播),static(静态)] | |
ip | object | 源站,取值{"1.1.1.1": "8080"},当回源策略为wgt时,取值{"1.1.1.1": {端口, 权重值}} | |
origin_sty | string | 回源策略,取值[isp_city(运营商+城市),isp_province(运营商+省份),isp_region(运营商+大区),isp(运营商),city(城市),province(省份),region(大区),null(关闭),wgt(权重)] | |
add_server_header | string | 回源Host 域名 | |
icp | string | ICP备案号 | |
siteinfo | string | 网站类型,如网上商城,个人博客等 | |
monitorurl | string | 监控地址 | |
cachetype | string | 缓存类型,取值范围[followOrigin(遵循源站),cacheStatic(缓存html等静态文件),custom(自定义)],默认遵循源站 | |
cacheconf | array | 策略内容,取值[{"pattern":"jpg,jpeg,gif,png,bmp","ttl":30,"unit":"h","type":"noCache","path":"","check_origin":1},{"pattern":"mp4,avi","ttl":30,"unit":"h","type":"cache","path":"\/","check_origin":1}] \n 字段描述:\n pattern 后缀名称,多个以逗号相隔 \n ttl 缓存时间 \n unit 缓存单位 取值[m分钟 h小时 d天] \n type 类型 取值[cache缓存 noCache不缓存 cacheHome缓存首页] \n path 缓存路径 \n check_origin 优先遵循源站[0 否 1 是] | |
origintype | string | 源站类型,取值[ip,domain,bucket],默认为ip | |
originback | array | 备份源站,取值["1.1.1.1": 8080] | |
ssl_redirect | int | 强制HTTPS访问,取值[0(不启用),1(启用)],默认不启用 | |
sslconf_id | int | SSL配置ID | |
origin_protocol | int | 源站协议 取值[0(HTTPS),1(HTTP)],默认0 | |
cache_ignore_query | string | 过滤参数,取值[on,off] | |
deny_ip | string | IP黑名单,多个用\n分隔 | |
accesskey | string | 是否开启Token防盗链,取值[on,off] | |
accesskey_hashmethod | string | Token防盗链加密方式,默认md5 | |
accesskey_signature | string | Token防盗链密钥 | |
accesskey_exclude | string | Token防盗链排除字符 | |
referer_enable | string | 是否开启Referer防盗链,取值[on,off] | |
referer_white | string | Referer防盗链白名单,多个用\n分隔 | |
referer_black | string | Referer防盗链黑名单,多个用\n分隔 | |
allow_null_referer | string | 允许空Referer,取值[on,off] | |
access_referer_suffix | string | 指定后缀 | |
access_deny_url | string | 自定义提示图 | |
ua_enable | string | 是否开启UA防盗链,取值[on,off] | |
ua_white | string | UA防盗链白名单,多个用\n分隔 | |
ua_black | string | UA防盗链黑名单,多个用\n分隔 | |
allow_null_ua | string | 允许空UA,取值[on,off] | |
access_ua_suffix | string | 指定后缀 | |
rtmp_host | string | RTMP回源Host,直播加速传递 | |
inputType | string | 输入方式,取值范围[rtmp_push, rtmp, hls],直播加速传递 | |
flv_enabled | string | 输出协议(flv),0否1是,直播加速传递 | |
hls_enabled | string | 输出协议(hls),0否1是,直播加速传递 | |
note | string | 备注 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainAdd -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "name": "www.verycloud.cn", "type": "cloud", "ip": {"1.1.1.1": "80"}, "icp": "苏ICP备11030873号-1"}' 返回字段解释: id: 频道ID name: 频道 icp: 备案号 type: 加速类型 ip: 源站IP monitorurl: 监控URL siteinfo: 网站类型 cacheconf: 缓存策略 cachetype: 缓存类型 sslconf_id: 证书ID ssl_redirect: 是否开启HTTPS跳转 originback: 备份源站 note: 备注
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1878",
"name": "www.verycloud.cn",
"icp": "苏ICP备11030873号-1",
"type": "cloud",
"ip": {
"1.1.1.1": ""
},
"monitorurl": "",
"siteinfo": "网上商城",
"cacheconf": [
],
"cachetype": "followOrigin",
"sslconf_id": "0",
"ssl_redirect": "0",
"originback": [
],
"note": ""
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 加速频道ID | |
mark | int | 是否星标,取值范围[1(是),0(否)] | |
ip | object | 源站,取值{"1.1.1.1": "8080"},当回源策略为wgt时,取值{"1.1.1.1": "端口, 权重值"} | |
origin_sty | string | 回源策略,取值[isp_city(运营商+城市),isp_province(运营商+省份),isp_region(运营商+大区),isp(运营商),city(城市),province(省份),region(大区),null(关闭),wgt(权重)] | |
add_server_header | string | 回源Host 域名 | |
icp | string | ICP备案号 | |
siteinfo | string | 网站类型 如网上商城 个人博客等 | |
monitorurl | string | 监控地址 | |
cachetype | string | 缓存类型,取值范围[followOrigin(遵循源站),cacheStatic(缓存html等静态文件),custom(自定义)],默认遵循源站 | |
cacheconf | array | 策略内容,取值[{"pattern":"jpg,jpeg,gif,png,bmp","ttl":30,"unit":"h","type":"noCache","path":"","check_origin":1},{"pattern":"mp4,avi","ttl":30,"unit":"h","type":"cache","path":"\/","check_origin":1}] \n 字段描述:\n pattern 后缀名称,多个以逗号相隔 \n ttl 缓存时间 \n unit 缓存单位 取值[m分钟 h小时 d天] \n type 类型 取值[cache缓存 noCache不缓存 cacheHome缓存首页] \n path 缓存路径 \n check_origin 优先遵循源站[0 否 1 是] | |
origintype | string | 源站类型,取值[ip,domain,bucket] | |
originback | array | 备份源站,取值["1.1.1.1": 8080] | |
ssl_redirect | int | 强制HTTPS访问,取值[0(不启用),1(启用)],默认不启用 | |
sslconf_id | int | SSL配置ID | |
origin_protocol | int | 源站协议 取值[0(HTTPS),1(HTTP)],默认0 | |
cache_ignore_query | string | 过滤参数,取值[on,off] | |
deny_ip | string | IP黑名单,多个用\n分隔 | |
accesskey | string | 是否开启Token防盗链,取值[on,off] | |
accesskey_hashmethod | string | Token防盗链加密方式,默认md5 | |
accesskey_signature | string | Token防盗链密钥 | |
accesskey_exclude | string | Token防盗链排除字符 | |
referer_enable | string | 是否开启Referer防盗链,取值[on,off] | |
referer_white | string | Referer防盗链白名单,多个用\n分隔 | |
referer_black | string | Referer防盗链黑名单,多个用\n分隔 | |
allow_null_referer | string | 允许空Referer,取值[on,off] | |
access_referer_suffix | string | 指定后缀 | |
access_deny_url | string | 自定义提示图 | |
ua_enable | string | 是否开启UA防盗链,取值[on,off] | |
ua_white | string | UA防盗链白名单,多个用\n分隔 | |
ua_black | string | UA防盗链黑名单,多个用\n分隔 | |
allow_null_ua | string | 允许空UA,取值[on,off] | |
access_ua_suffix | string | 指定后缀 | |
rtmp_host | string | RTMP回源Host,直播加速传递 | |
inputType | string | 输入方式,取值范围[rtmp_push, rtmp, hls],直播加速传递 | |
flv_enabled | string | 输出协议(flv),0否1是,直播加速 | |
hls_enabled | string | 输出协议(hls),0否1是,直播加速传递 | |
limit_url_enable | string | 是否启用单链接限速,on(开启),off(关闭) | |
limit_rate | int | 限制速度,单位:KB/s | |
limit_rate_size | int | 限制文件大小,单位:MB | |
limit_rate_time | string | 限速时间段,多个用英文状态下逗号相隔,例如:18:00-19:00,22:00-23:00 | |
limit_rate_after | int | 限速开始前可以传输的文件大小,单位KB | |
limit_rate_filter | string | 限速规则(目录限速),匹配到了才限速,多个请使用英文状态下逗号相隔,如:/aaa/,/bbbb/cc/ | |
note | string | 备注 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainUpdate -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "ip": {"1.1.1.1": "80"}, "icp": "苏ICP备11030873号-1"}' 返回字段解释: id: 频道ID name: 频道 icp: 备案号 type: 加速类型 ip: 源站IP monitorurl: 监控URL siteinfo: 网站类型 cacheconf: 缓存策略 cachetype: 缓存类型 sslconf_id: 证书ID ssl_redirect: 是否开启HTTPS跳转 originback: 备份源站 note: 备注
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"name": "www.verycloud.cn",
"icp": "苏ICP备11030873号-1",
"type": "cloud",
"ip": {
"1.1.1.1": ""
},
"mark": "1",
"monitorurl": "",
"siteinfo": "网上商城",
"cacheconf": [
{
"pattern": "html,htm,shtml,txt,js,css,jpg,jpeg,gif,png,bmp,iso",
"ttl": 7,
"unit": "d",
"type": "cacheHome",
"path": ""
},
{
"pattern": "",
"ttl": 0,
"unit": "",
"type": "noCache",
"path": "/test2/"
},
{
"pattern": "",
"ttl": 1,
"unit": "d",
"type": "cache",
"path": "/"
}
],
"cachetype": "custom",
"sslconf_id": "0",
"ssl_redirect": "0",
"originback": {
"192.168.1.2": ""
},
"note": ""
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
domain_ids | array | 加速频道ID,取值[1,2] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainStart -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "domain_ids": [1,2]}' 返回字段解释: id: 频道ID name: 频道名称
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "1852",
"name": "www.verycloud.cn"
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
domain_ids | array | 加速频道ID,取值[1,2] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainClose -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "domain_ids": [1,2]}' 返回字段解释: id: 频道ID name: 频道名称
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "1852",
"name": "www.verycloud.cn"
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
domain_ids | array | 加速频道ID,取值[1,2] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "domain_ids": [1,2]}' 返回字段解释: id: 频道ID name: 频道
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "1852",
"name": "www.verycloud.cn"
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 频道ID | |
dir | string | 目录 | |
begintime | string | 开始日期,Y-m-d | |
endtime | string | 结束日期,Y-m-d | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainLogList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "limit": 30, "page": 1}' 返回字段解释: name: 日志名称 size: 大小 url: 下载地址
{
"code": 1,
"message": "操作完成",
"data": [
{
"name": "2015-03-21",
"size": "-",
"url": ""
},
{
"name": "2015-03-20.tar",
"size": "1.08G",
"url": "http://cz-dl1.verycdn.com.cn/550cd5cc/b9908e982b0a512c1f4d6e020ecdddd0/251/www.verycloud.cn/2015-03-20.tar"
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 2,
"created": "2015年03月21日 10:22:04"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
domain_ids | array | 加速频道ID,取值[1,2] | |
begintime | string | 开始日期,Y-m-d | |
endtime | string | 结束日期,Y-m-d | |
viewtype | string | 查看类型,取值范围[today(当天),yesterday(昨天),week(本周),month(当月),last_month(上月),custom(自定义)] | |
serviceTypes | array | 加速类型 取值[cloud(云分发),static(静态),dynamic(动态),rtmp(RTMP加速),music(音视加速),hls(HLS加速),download(下载加速)] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainBandwidth -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60"}' 返回字段解释: hit: 命中数 reqs: 请求数 rx: 回源流量(单位字节) tx: 带宽流量 (单位字节) tpr: 平均下载时间(ms) 从建立链接到下载完成花费的时间 logtime: 计费时间,unix时间戳
{
"code": 1,
"message": "操作成功",
"created": "2015年03月21日 10:45:26",
"data": {
"bandwidth": [
{
"logtime": "1426867200",
"hit": "0",
"reqs": "0",
"rx": "0",
"tx": "0",
"tpr": "0"
}
]
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
domain_ids | array | 加速频道ID,取值[1,2] | |
begintime | string | 开始日期,Y-m-d | |
endtime | string | 结束日期 ,Y-m-d | |
viewtype | string | 类型,取值范围[today(当天),yesterday(昨天),week(本周),month(当月),last_month(上月),custom(自定义)] | |
types | array | 获取数据的类型,取值[cache, code, country, province, isp] | |
serviceTypes | array | 加速类型 取值[cloud(云分发),static(静态),dynamic(动态),rtmp(RTMP加速),music(音视加速),hls(HLS加速),download(下载加速)] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainLogstat -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60"}' 返回字段解释: cdn: 命中百分比 回源: 回源百分比 summary: 时间 hit: 命中 miss: Miss code: 响应码
{
"code": 1,
"message": "操作成功",
"created": "2015年03月21日 10:47:09",
"data": {
"cacheGraph": [
[
"cdn",
100
],
[
"回源",
0
]
],
"summary": {
"timestamp": "2015-03-21 10:45:00"
},
"cache": {
"hit": {
"reqs": "8",
"tx": "30179"
},
"miss": {
"reqs": "0",
"tx": "0"
}
},
"code": {
"200": {
"reqs": "8",
"tx": "30179"
}
}
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
domain | string | 加速频道 | |
type | string | 加速类型 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/getLivePushOrigin -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "domain": "www.verycloud.cn", "type": "live"}' 返回字段解释: id: ID name: 名称
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "618",
"name": "北京市BGP"
}
],
"created": "2016年07月01日 10:51:11"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 证书ID | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/sslList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1}' 返回字段解释: id: 频道ID uid: 用户ID username: 用户名 commonname: 通用名称 subjectAltName: 备用名称 name: 证书名称 createtime: 创建时间 createtime_ago: 创建时间
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "3",
"uid": "6894123456",
"commonname": "*.verycloud.cn",
"subjectAltName": [
"*.verycloud.cn",
"verycloud.cn"
],
"username": "example_user",
"name": "verycloud证书",
"createtime": "2015-03-05 11:11",
"createtime_ago": "2周前",
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 1,
"created": "2015年03月21日 10:51:11"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
name | string | 证书名称 | |
ssl_crt | string | 证书文件,取值[证书内容] | |
ssl_key | string | 证书密钥,取值[密钥内容] | |
ssl_ca | string | CA机构证书,取值[CA证书内容] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/sslAdd -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "name": "verycloud证书", "ssl_crt": "证书内容", "ssl_key": "秘钥内容"}' 返回字段解释: id: 证书ID name: 名称 commonname: 通用名称 subjectAltName: 备用名称
{
"code": 1,
"message": "操作完成",
"data": {
"id": "3",
"name": "测试",
"commonname": "*.verycloud.cn",
"subjectAltName": [
"*.verycloud.cn",
"verycloud.cn"
]
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 证书ID | |
name | string | 证书名称 | |
ssl_crt | string | 证书文件,取值[证书内容] | |
ssl_key | string | 证书密钥,取值[密钥内容] | |
ssl_ca | string | CA机构证书,取值[CA证书内容] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/sslUpdate -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "name": "verycloud证书", "ssl_crt": "文件内容", "ssl_key": "秘钥内容"}' 返回字段解释: id: 证书ID name: 名称 commonname: 通用名称 subjectAltName: 备用名称
{
"code": 1,
"message": "操作完成",
"data": {
"id": "3",
"name": "测试",
"commonname": "*.verycloud.cn",
"subjectAltName": [
"*.verycloud.cn",
"verycloud.cn"
]
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 证书ID |
curl -i -X POST https://api3.verycloud.cn/API/cdn/sslDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890}' 返回字段解释: id: 证书ID name: 名称
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"name": "verycloud证书"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
ids | array | 加速频道ID,取值[1,2] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/domainCurrentData -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "ids": "[1,2,3]"}' 返回字段解释: did: 频道ID reqs: 请求数 rx: 回源流量(单位字节) tx: 带宽流量 (单位字节) tpr: 平均下载时间(ms) 从建立链接到下载完成花费的时间 updatetime: 更新时间,unix时间戳
{
"code": 1,
"message": "操作完成",
"data": [
{
"did": "182",
"reqs": "516",
"rx": "1778426",
"tx": "99936592",
"tpr": "19",
"updatetime": "1426908000"
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
domain_ids | array | 加速频道ID,取值[1,2] | |
preload | int | 内容预取,取值范围[0(否),1(是)] | |
type | string | 类型,取值范围[file(文件),dir(目录)] | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/refreshList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1}' 返回字段解释: id: 刷新ID type: 类型 status: 状态,0刷新中、1完成 urls: url preload: 是否预取,0否、1是 preloadtype: 预取类型,0非全网、1全网 is_api: 是否API调用,0否、1是 created: 创建时间 objectnum: url数量
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "96",
"type": "file",
"status": "0",
"urls": [
"http://www.verycloud.cn/2.txt",
"http://www.verycloud.cn/3.txt"
],
"preload": "0",
"preloadtype": "0",
"is_api": "0",
"created": "2015/03/14 15:34",
"objectnum": "2"
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 6,
"created": "2015年03月21日 12:56:10"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
type | string | 类型,取值范围[file(文件),dir(目录)]。注:当传id时,此项为可选项 | |
urls | string | 刷新url,如:http://www.verycloud.cn/2.txt,默认多个用逗号“,”分隔 | |
partition | string | 刷新url分隔符,如不填写则默认为逗号,如填写最多一个字符,如分号;, 可选参数 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/refresh -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "type": "file", "urls": "http://www.verycloud.cn/2.txt"}' 返回字段解释: id: 刷新ID type: 类型 status: 状态,0刷新中、1完成 urls: url preload: 是否预取,0否、1是 preloadtype: 预取类型,0非全网、1全网 is_api: 是否API调用,0否、1是 created: 创建时间 objectnum: url数量
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"type": "dir",
"status": "1",
"urls": [
"http://www.verycloud.cn/2.txt"
],
"preload": "0",
"preloadtype": "0",
"is_api": "0",
"created": "1426914202",
"objectnum": "1"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 刷新ID |
curl -i -X POST https://api3.verycloud.cn/API/cdn/refreshById -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", id: 1234567890}' 返回字段解释: id: 刷新ID type: 类型 status: 状态,0刷新中、1完成 urls: url preload: 是否预取,0否、1是 preloadtype: 预取类型,0非全网、1全网 is_api: 是否API调用,0否、1是 created: 创建时间 objectnum: url数量
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"type": "dir",
"status": "1",
"urls": [
"http://www.verycloud.cn/2.txt"
],
"preload": "0",
"preloadtype": "0",
"is_api": "0",
"created": "1426914202",
"objectnum": "1"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 刷新ID,多个以逗号隔开 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/refreshStatus -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", id: 1234567890}' 返回字段解释: id: 刷新ID type: 类型 status: 状态,0刷新中、1完成 urls: url preload: 是否预取,0否、1是 preloadtype: 预取类型,0非全网、1全网 is_api: 是否API调用,0否、1是 created: 创建时间 objectnum: url数量
{
"code": 1,
"message": "操作完成",
"data": [
{
1234567890: "success",
1234567891: "failed",
1234567892: "processing",
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
preloadtype | int | 预取范围,取值范围[1(全网节点),0(仅核心节点)] | |
urls | string | 刷新url,如:http://www.verycloud.cn/2.txt,默认多个用逗号“,”分隔 | |
partition | string | 刷新url分隔符,如不填写则默认为逗号,如填写最多一个字符,如分号;, 可选参数 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/preload -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "urls": "http://www.verycloud.cn/2.txt"}' 返回字段解释: id: ID type: 类型 status: 状态,0刷新中、1完成 urls: url preload: 是否预取,0否、1是 preloadtype: 预取类型,0非全网、1全网 is_api: 是否API调用,0否、1是 created: 创建时间 objectnum: url数量
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"type": "dir",
"status": "1",
"urls": [
"http://www.verycloud.cn/2.txt"
],
"preload": "0",
"preloadtype": "0",
"is_api": "0",
"created": "1426914202",
"objectnum": "1"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 预取ID |
curl -i -X POST https://api3.verycloud.cn/API/cdn/preloadById -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", id: 1234567890}' 返回字段解释: id: ID type: 类型 status: 状态,0刷新中、1完成 urls: url preload: 是否预取,0否、1是 preloadtype: 预取类型,0非全网、1全网 is_api: 是否API调用,0否、1是 created: 创建时间 objectnum: url数量
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"type": "dir",
"status": "1",
"urls": [
"http://www.verycloud.cn/2.txt"
],
"preload": "0",
"preloadtype": "0",
"is_api": "0",
"created": "1426914202",
"objectnum": "1"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 预取ID,多个以逗号隔开 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/preloadStatus -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", id: 1234567890}'
{
"code": 1,
"message": "操作完成",
"data": [
{
1234567890: "success",
1234567891: "failed",
1234567892: "processing",
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
ids | array | 刷新ID,取值[1,2] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/refreshDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "ids": "1234567890,234569852"}' 返回字段解释: id: 刷新ID urls: Url
{
"code": 1,
"message": "操作成功",
"data": [
{
"id": "1234567890",
"urls": [
"http://www.verycloud.cn/2.txt",
"http://www.verycloud.cn/3.txt"
]
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
type | array | 加速类型,取值范围[cloud(云分发),download(下载),hls(HLS),music(音视),rtmp(RTMP),static(静态)] | |
months | array | 月份 如201506表示2015年6月份,最多查询最近12个月的数据 | |
sub_uid | int | 子账号ID,查询子账号账单时必选 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/getBillByUser -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "type": ["cloud"], "months": ["201506"], "sub_uid": 1234567890}' 返回字段解释: username: 用户名 billtype: 计费类型 billtype_zh: 计费类型名称 srvtype: 加速类型 srvtype_zh: 加速类型名称 month: 月份 total_format: 计费值 total: 计费值,单位字节
{
"code": 1,
"message": "操作完成",
"data": [
{
"billtype": "total",
"billtype_zh": "总流量",
"srvtype": "cloud",
"srvtype_zh": "云分发",
"month": "201506",
"total_format": "16.67 T",
"total": "16670732118583",
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
domain_ids | array | 频道ID | |
begintime | int | 开始时间,取值[unixtime] | |
endtime | int | 结束时间,取值[unixtime] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/getBillByDomainID -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "domain_ids": [1234567890], "begintime": 123456789, "endtime": 223456789}' 返回字段解释: username: 用户名 billtype: 计费类型 billtype_zh: 计费类型名称 srvtype: 加速类型 srvtype_zh: 加速类型名称 month: 月份 total_format: 计费值 total: 计费值,单位字节 sum: 当月计费值总计
{
"code": 1,
"message": "操作完成",
"data": [
{
"billtype": "total",
"total_format": "17.81 T",
"total": 17814818551814
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
name | string | 频道名称 | |
type | string | 取值范围[core(核心), edge(边缘)] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/nodes -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "name": "www.verycloud.cn"}'
{
"code": 1,
"message": "操作成功",
"data": [
"60.174.242.40",
"112.245.16.151",
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
client_ip | string | 客户端ip | |
name | string | 频道名称 | |
absolute | int | 匹配精确的服务节点,取值[0否,1是] |
curl -i -X POST https://api3.verycloud.cn/API/cdn/getNodesByClientIP -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "client_ip": "112.82.223.246", "name": "www.verycloud.cn"}'
{
"code": 1,
"message": "success",
"data": {
"client": {
"client_ip": "112.82.223.246",
"client_isp": "常州联通"
},
"server": [
{
"server_ip": "112.82.223.246",
"server_isp": "常州联通"
}
]
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
ip | string | IP地址,多个以逗号隔开 |
curl -i -X POST https://api3.verycloud.cn/API/cdn/queryVmIp -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "ip": "211.162.213.6"}' 返回字段解释: country: 国家 area: 区域 province: 省 city: 城市 isp: 运营商
{
"code": 1,
"message": "success",
"data": {
"211.162.213.6": {
"country": "CN",
"isp": "鹏博士",
"city": "重庆",
"area": "西南",
"province": "重庆"
},
}
}