Update the Forward-to-origin Address of the Acceleration Domain Name
Last Updated:2020-09-17
Interface
This interface is used to update the origin address of the accelerated domain name.
Method | Path | Description |
---|---|---|
PUT | /v2/abroad/domain/{domain}/config?origin | Modify the origin address of the accelerated domain name |
Request Body
Parameter | Optional | Type | Description |
---|---|---|---|
domain | Required | string | Accelerated domain name |
originConfig | Required | List | Origin server configuration |
The originConfig types are as follows:
Parameter | Optional | Type | Description |
---|---|---|---|
type | Required | string | Origin server type(IP\ | DOMAIN) |
backup | Required | boolean | Is it a standby origin server? |
addr | Required | string | Origin server address |
Response code(Http Status Code)
Http Status Code | Description |
---|---|
200 | Modification of origin server succeeded |
400 | The address format is incorrect, or the body format is wrong |
Request example
PUT /v2/abroad/domain/test.bcecdn.com/config?origin= HTTP/1.1
x-bce-date: 2018-11-21T08:37:04Z
Host: cdn.baidubce.com
Content-Length: 76
{
"originConfig": [ {
"type": "IP",
"addr": "180.76.96.174",
"backup": False
}]
}
Response example
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 21 Nov 2018 08:37:05 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
x-bce-request-id: afde606c-74da-c01a-9882-af94fe405367
{"requestId":"afde606c-74da-c01a-9882-af94fe405367","code":"success","message":"update origin success"}