- 请求方式:GET
- 请求路径:/v1/domain/info
Query参数
domain | string | 域名 | 是 |
响应Json参数
code | int | 状态码 | |
message | string | 描述信息 | |
domain | string | 域名 | |
product_code | string | 产品业务类型 | "001":静态加速,"003": 下载加速, "004":视频点播加速,"005":"视频直播加速","006": "全站加速" |
origin | list | 源站信息 | |
origin:origin | string | 源站ip或域名 | |
origin:port | int | 源站端口 | |
origin:weight | int | 权重 | 范围:1-100 |
origin:role | string | 源站角色 | 取值: master, slave |
origin:protocol | string | 源站类型 | 取值: http,https, 默认http。当http源站与https源站为不同ip或域名时,需传此参数,其他情况请忽略此参数 |
black_referer | dict | referer黑名单 | |
black_referer:allow_list | list | referer黑名单列表 | |
black_referer:allow_empty | string | 取值"on":允许为空 "off":不允许为空 | |
white_referer | dict | referer白名单 | |
white_referer:allow_list | list | referer白名单列表 | |
white_referer:allow_empty | string | 取值"on":允许为空 "off":不允许为空 | |
filetype_ttl | list | 文件过期时间设置 | |
filetype_ttl:file_type | string | 缓存文件类型,多个以逗号隔开 | |
filetype_ttl:ttl | int | 缓存时间,单位秒 | |
filetype_ttl:cache_type | int | 缓存类型 | 1:不缓存,2:优先遵循源站 3:强制缓存 |
filetype_ttl:cache_with_args | int | 是否带参数缓存 | 0:不带参数缓存,1:带参数缓存 |
filetype_ttl:mode | int | 模式 | 默认0, 0:文件后缀 1:目录 2: 首页 3: 全部文件 4: 全路径 |
filetype_ttl:priority | int | 优先级 | 默认10 |
ip_black_list | string | ip黑名单 | 黑白名单只允许存在一个,若同时存在只处理黑名单,多个ip以逗号分隔,示例:1.1.1.1,2.2.2.2,::1 |
ip_white_list | string | ip白名单 | 黑白名单只允许存在一个,若同时存在只处理黑名单,多个ip以逗号分隔,示例:1.1.1.1,2.2.2.2,::1 |
req_headers | list | 自定义回源请求头 | |
req_headers:key | string | 自定义回源请求头名称 | |
req_headers:value | string | 自定义回源请求头值 | |
resp_headers | list | 自定义响应请求头 | |
resp_headers:key | string | 自定义响应请求头名称 | |
resp_headers:value | string | 自定义响应请求头值 | |
special_requirement | string | 特殊需求信息 | |
cert_name | string | 证书备注名 | 证书备注名,如果证书存在,此备注名必须存在 |
req_host | string | 回源host | |
live_conf | dict | 直播加速信息 | |
live_conf:protocol_type | int | 直播协议类型 | 1:http直播, 2: RTMP直播 |
live_conf:domain_type | int | 域名类型 | 1:拉流域名, 2: 推流域名 |
live_conf:mode | int | 拉流模式 | 1:推拉流, 2: 回源拉流 |
live_conf:publish_point | string | 发布点 | 多个用逗号分割 |
live_conf:related_domain | string | 关联推拉流域名 | |
live_conf:multi_protocol | int | 多协议输出 | 多协议输出,取值: 0: 否, 1: 是 |
test_url | string | 测试url | |
area_scope | int | 服务区域 | 1-国内 2-海外 3-国内+海外。缺省:1 |
basic_conf | dict | http配置基础信息 | |
basic_conf:follow302 | int | 是否拉取跳转后文件 | 0: 否 1:是 |
basic_conf:use_http2 | int | 是否开启http2 | 取值0:不开启,1:开启 默认0,该字段只有在证书开启状态下才会有效 |
error_code | list | 错误码缓存配置 | |
error_code:code | string | 错误状态码 | 多个用逗号间隔 |
error_code:ttl | int | 缓存时间 | 单位秒 |
shared_host | string | 共享缓存域名 | |
user_agent | dict | user_agent黑白名单配置 | |
user_agent:type | int | 类型 | 0: 黑名单, 1: 白名单 |
user_agent:ua | list | user_agent列表 | 多个用,隔开 |
https_status | string | 是否开启https | 取值:on、off,取值为on时,cert_name为必传字段 |
https_basic | dict | https基础配置 | |
https_basic:https_force | string | https强制跳转 | 取值:"on":跳转 "off":不跳转 |
https_basic:http_force | string | http强制跳转 | 取值:"on":跳转 "off":不跳转 |
https_basic:force_status | string | 强制跳转状态码 | 默认:302 |
https_basic:origin_protocol | string | https回源协议 | 取值: http:用http协议回源 https:用https协议回源,follow_request:跟随访问协议进行回源 |
record_num | string | 备案号 | |
record_status | string | 备案状态 | false:未备案,ture:已备案 |
ignore_headers | string | 要忽略的请求头 | |
customer_name | string | 客户名称 | |
insert_date | string | 创建时间 | 毫秒 |
status_date | string | 修改时间 | 毫秒 |
cname | string | cname | |
status | int | 状态 | 4-已启用;6-已停止。域名详情只返回域名的确定状态,过程中的状态不会返回。 |
示例
请求文档
{ "domain": "xxxx.com" }
响应文档
{ "area_scope": 1, "status_date": "0", "code": 100000, "record_status": "true", "insert_date": "1623294757000", "origin": [ { "protocol": "http", "role": "master", "port": 80, "origin": "xxxx.test.com", "weight": 10 }, { "protocol": "http", "role": "master", "port": 80, "origin": "xxxx.cdn.test.cn", "weight": 10 }, { "protocol": "http", "role": "slave", "port": 80, "origin": "10.0.0.1", "weight": 10 }, { "protocol": "http", "role": "slave", "port": 80, "origin": "10.0.0.2", "weight": 10 } ], "cname": "xxxx.com.ctdns.cn", "https_basic": { "https_force": "on", "force_status": "302", "origin_protocol": "follow_request" }, "product_code": "001", "message": "success", "https_status": "on", "basic_conf": { "use_http2": 1 }, "cert_name": "secret-xxx", "domain": "xxxx.com", "status": 4 }