海外CDN

    设置回源Host

    接口

    本接口用于设置回源Host。

    Method Path 说明
    PUT /v2/abroad/domain/{domain}/config?designateHostToOrigin 设置回源Host

    请求体(Request Body)

    参数 可选 类型 说明
    designateHostToOrigin 必选 string 回源Host

    响应码(Http Status Code)

    Http Status Code 说明
    200 配置成功
    400 body格式不正确或者Host格式不正确

    请求示例

    PUT /v2/abroad/domain/test.bcecdn.com/config?designateHostToOrigin HTTP/1.1
    x-bce-date: 2018-11-22T04:18:34Z
    Host: cdn.baidubce.com
    Content-Length: 44
    
    {
        "designateHostToOrigin": "www.originhost.example.com"
    }

    响应示例

    Server: nginx
    Date: Thu, 22 Nov 2018 04:18:34 GMT
    Content-Type: application/json; charset=utf-8
    Connection: keep-alive
    x-bce-request-id: d75ecc24-c5a6-c52-86ca-db6a86c3c805
    
    {"requestId":"d75ecc24-c5a6-c52-86ca-db6a86c3c805","code":"success","message":"designate origin host success."}
    上一篇
    设置ip访问规则
    下一篇
    查询域名详情