Miku 直播

  • Miku 直播 > API 文档 > 域名管理API >获取下行域名配置

    获取下行域名配置

    最近更新时间: 2025-11-20 22:48:23

    描述

    获取指定直播空间中某个下行域名的详细配置信息

    接口信息

    • 请求方法: GET
    • 请求地址: <bucket>.mls.cn-east-1.qiniumiku.com
    • 请求路径: /

    请求参数

    Query 参数

    参数名称 类型 必填 示例值 描述
    domainConfig string domainConfig 域名配置
    name string www.example.com 域名

    Header参数

    参数名称 类型 必填 示例值 描述
    Host string <bucket>.mls.cn-east-1.qiniumiku.com 请求的服务域名
    Authorization string <QiniuToken> 管理凭证 QiniuToken,生成规则

    请求示例

    GET /?domainConfig&name=www.example.com HTTP/1.1
    Host: test.mls.cn-east-1.qiniumiku.com
    Authorization: <QiniuToken>
    Content-Type: application/json
    
    {}
    

    返回响应

    响应状态码

    响应示例

    {
        "auth": {
            "type": "",
            "enable": false,
            "primaryKey": "",
            "secondaryKey": "",
            "expireSeconds": 0
        },
        "certificateID": "",
        "cname": "www.example.com.subscribe.mikudns.com",
        "connectId": "YmgAAHDY5NwDSnkY",
        "creationDate": "2019-01-01T00:00:00.000+08:00",
        "domain": "www.example.com",
        "enable": true,
        "httpsEnable": true,
        "ipLimit": {
          "whitelist": null,
          "blacklist": null
        },
        "lastModified": "2019-01-01T00:00:00.000+08:00",
        "refererSecurity": {
          "type": "",
          "list": null,
          "includeEmpty": false
        },
        "type": "liveRtmp"
    }
    

    响应参数

    参数名称 类型 说明
    auth object 防盗链配置,详见 auth 对象
    certificateID string HTTPS 证书 ID,只支持 whip 协议域名
    cname string CNAME 域名别名
    connectId string 请求连接的唯一标识符
    creationDate string 域名创建时间,遵循 ISO 8601格式
    domain string 域名地址
    enable boolean 域名是否启用
    httpsEnable boolean 是否启用 HTTPS 协议,只支持 whip 协议域名
    ipLimit object IP 限制配置,详见 ipLimit 对象
    lastModified string 最后修改时间,遵循 ISO 8601 格式
    refererSecurity object Referer 安全配置,详见 refererSecurity 对象
    type string 域名类型(liveRtmp:rtmp 播放域名; liveHls:hls 播放域名; liveDash:dash 播放域名; liveFlv:flv 播放域名; whep:whep 播放域名; live:所有的播放协议共用一个域名; liveSrt:srt 播放域名)

    auth 对象

    参数名称 类型 说明
    type string 防盗链类型
    enable boolean 是否启用防盗链功能
    primaryKey string 防盗链主密钥
    secondaryKey string 防盗链从密钥(备用)
    expireSeconds integer 防盗链链接的有效期,单位为秒

    ipLimit 对象

    参数名称 类型 说明
    whitelist null IP白名单
    blacklist null IP黑名单

    refererSecurity 对象

    参数名称 类型 说明
    type string “black”:黑名单类型 “white”:白名单类型 “”:关闭鉴权
    list []string Referer 白名单或黑名单列表(当前未启用,保留字段)
    includeEmpty boolean 是否允许空 Referer 访问
    以上内容是否对您有帮助?