Set Forward-to-origin Host
Last Updated:2020-09-17
Interface
This interface is used to set Origin Host.
Method | Path | Description |
---|---|---|
PUT | /v2/abroad/domain/{domain}/config?designateHostToOrigin | Set Origin Host |
Request Body
Parameter | Optional | Type | Description |
---|---|---|---|
designateHostToOrigin | Required | string | Origin Host |
Response code(Http Status Code)
Http Status Code | Description |
---|---|
200 | Successfully configured |
400 | body format incorrect or Host format incorrect |
Request example
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"
}
Response example
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."}