Set the Range Forwarding to Origin
Last Updated:2020-09-17
Method | Path | Description |
---|---|---|
PUT | /v2/domain/{domain}/config?rangeSwitch | Set Range origin |
domain: Acceleration domain name needing to set CDN.
Comments: Enable the range origin by default.
Request body
Parameter | Optional | Type | Description |
---|---|---|---|
rangeSwitch | Required | Bool | true means enabling the range origin, and false means disabling the range origin. |
Request example
PUT /v2/domain/myself.baidu.com/config?rangeSwitch HTTP/1.1
Host: cdn.baidubce.com
Content-Length: 72
Content-Type: text/json;utf-8
{"rangeSwitch": true}
Response code (Http Status Code)
HTTP Status Code | Description |
---|---|
200 | Success |
400 | Update failures, parameter errors, etc. |
Response body
Parameter | Type | Description |
---|---|---|
status | String | The status returned after it was just updated successfully is OPERATING. |
Response example
HTTP/1.1 200 OK
Server: nginx/1.14.0
Date: Fri, 21 Sep 2018 03:46:35 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.6.36x-bce-request-id: dd490e5d-64da-e2b-1cdd-fc98c864dfd
{"status":"OPERATING"}