查询域名配置信息 接口功能介绍 调用本接口可查询视频直播产品指定域名配置信息 使用说明 单个用户一分钟限制调用10000次,并发不超过100 各功能默认为关闭,若无返回值,则代表关闭 接口详情 请求方式:POST 请求路径:/live/domain/querydomaindetail 请求参数 参数 类型 名称 是否必填 说明 ::::: productcode string 产品类型 是 取值:“005”(即视频直播) domain string 域名 是 支持单个域名 响应参数 参数 类型 名称 说明 :::: code int 状态码 成功100000 message string 信息描述 成功返回success,其他返回异常信息描述 domain string 域名 productcode string 产品类型 insertdate string 创建时间 毫秒 statusdate string 修改时间 毫秒 status int 域名状态 4已启用;6已停止。域名详情只返回域名的确定状态,过程中的状态不会返回。 areascope int 服务区域 1中国内地;2全球(不含中国内地); 3全球 conftype int 域名配置类型 1(直播拉流);2(直播推流) pullstreammode int 拉流模式 取值:0:推拉流,1:回源拉流,默认取值为0 此参数只能在conftype1时起作用 pushstreamdomain string 关联推流域名 httpsswitch int 开关 取值:0:关,1:开;默认取值为0 certname string 证书名 仅httpsswitch为1时生效 rtmporigin list rtmp协议回源参数 元素为字典 rtmporigin[].origin string rtmp协议地址 flvorigin list flv协议http回源参数 元素为字典 flvorigin[].origin string flv协议地址 flvhttpsorigin list flv协议https回源参数 元素为字典 flvhttpsorigin[].origin string flv协议地址 hlshttporigin list hls协议回源参数 元素为字典 hlshttporigin[].origin string 源站 hlshttpsorigin list hls协议回源参数 元素为字典 hlshttpsorigin[].origin string 源站 distributionprotocol string 分发协议 flv,rtmp,hls, 多个以逗号间隔 ipaccesscontrol dict ip黑白名单 ipaccesscontrol.list list ip名单 示例:["1.1.1.1", "2.2.2.2"] ipaccesscontrol.type int 黑白名单 取值:0:黑名单,1:白名单;默认取值为0 ipaccesscontrol.switch string 开关 取值:on(开启)、off(关闭) referercontrol dict referfer黑白名单 referercontrol.switch string 开关 取值:on(开启)、off(关闭) referercontrol.list list referfer名单 示例:["ctyun.cn","ctyun.cn1"] referercontrol.type int 黑白名单 取值:0:黑名单,1:白名单;默认取值为0 referercontrol.allowempty string 空referfer 取值"on", "off",取值"on", "off",默认"off" selfnotice object 推流回调 不传字段或者传值为null代表不做修改,否则默认整体替换 若selfnotice.switchoff,本参数不会返回 selfnotice.switch int 推流回调开关 取值:on(开启)、off(关闭); 开启时,推流回调地址、推流回调host、开播通知uri和关播通知uri均必填 selfnotice.notifyaddress string 推流回调地址 支持ipv4、ipv6和域名 selfnotice.notifyport int 开关播通知的端口 若开关播通知的端口为默认值为80,不会返回 selfnotice.notifyhost string 开关播请求使用的host头 支持ipv4、ipv6和域名 selfnotice.notifystarturlpath string 开播通知uri 示例:”/pushstart“ selfnotice.notifystopurlpath string 关播通知uri 示例:”/pushend“ timeshift object 时移任务 不传字段代表不做修改,否则默认整体替换,只支持配置一个时移任务; 当前只支持绑定推流域名,若timeshift.switchoff,本参数不会返回 timeshift.switch string 时移开关 取值:on(开启)、off(关闭); timeshift.maxplaybacktime string 时移任务回看时长 30s~30d(time格式,30s到30天); 默认一小时,支持的单位: s、m、 h、d timeshift.moduleid string 录制模板id 时移需要绑定的录制模板id thirdpush object 转推 若thirdpush.switch,本参数不会返回 thirdpush.switch int 转推开关,on(开启)、off(关闭) thirdpush.pushlist list 转推列表 thirdpush.pushlist[].origin string 支持ipv4、ipv6和域名 thirdpush.pushlist[].port string 转推目标端口 默认1935 若转推目标端口为默认值为1935,不会返回 thirdpush.pushlist[].host string 转推使用的请求头host
来自: