频道详细信息查询
优质
小牛编辑
127浏览
2023-12-01
2.5 频道详细信息查询
2.5.1 描述
通过调用该接口查询频道的详细配置信息(缓存策略, 回源信息, 访问控制)。
2.5.2 请求地址
线上地址:
https://api.bokecs.com/channel/info?domain={domain}
2.5.3 请求方式
GET
2.5.4 请求参数
1) 请求入参
domain 非必选,频道域名
id 非必须,频道唯一标识。与domain至少存在一个
2) 请求出参
{
"code": "200",
"access_policies": [
{
"forbidden_referers": "",
"forbidden_ips": "2.3.3.4|3.2.3.2",
"allow_referers": "",
"path_pattern": "/*"
}
],
"cache_policies": [
{
"cache_ttl": "86400",
"ignore_cache_control": "true",
"remark": null,
"path_pattern": "/*.jpg"
}
],
"origin_policies": {
"origin_type": "ip",
"origin_ips": [
"1.1.1.2"
],
"origin_domain": [
" www.baidu.com "
]
},
"message": "",
"basic_info": {
"dns_alias": "sinafff84.bokecs.net",
"product_code":"WEB",
"domain_name": "www.sinafff.com",
"name": "http://www.sinafff.com",
"product_name": "网页",
"status": "Inservice",
"create_date": "2016-09-10 00:00:00"
}
}