Found 0 result in total

Content is empty
If you don't find the content you expect, please try another search term
Content Delivery Network (CDN)
API Documentation
Domain Detailed Configuration
SetOriginAdvancedConfig
Last updated:2021-03-17 11:07:30
You can call this operation to configure the hot standby origin and advanced back-to-origin policy.
Note:
The API request contains the specified directory /2016-09-01/domain/SetOriginAdvancedConfig, common request headers, and operation-specific request parameters. For more information, see the sample request.
| Header | Required | Type | Description |
|---|---|---|---|
| X-Version | Yes | String | The version number. Set the value to 2016-09-01. |
| X-Action | Yes | String | The operation that you want to perform. Set the value to SetOriginAdvancedConfig. |
| Parameter | Required | Type | Description |
|---|---|---|---|
| DomainId | Yes | String | The ID of the domain name. |
| Enable | Yes | String | Specifies whether to enable advanced back-to-origin. Valid values: on and off. After advanced back-to-origin is enabled, the basic back-to-origin configuration is disabled. Default value: off. If the Enable parameter is set to on, the following parameters are required. If the Enable parameter is set to off, the following parameters are ignored. |
| OriginType | Yes | String | The type of the main origin. Valid values: ipaddr (IP address) and domain (domain name). The main origin is specified when the domain name is added. After advanced back-to-origin is disabled, the back-to-origin configuration specified when the domain name is added takes effect. |
| Origin | Yes | String | The address of the main origin, which is an IP address or a domain name. You can specify either up to 20 IP addresses separated with commas (,) or only one domain name. |
| BackupOriginType | Yes | String | The type of the hot standby origin. Valid values: ipaddr (IP address) and domain (domain name). |
| BackupOrigin | Yes | String | The address of the hot standby origin, which is an IP address or a domain name. You can specify either up to 20 IP addresses separated with commas (,) or only one domain name. |
| OriginPolicy | Yes | String | The origin policy. Valid values: rr (round robin) and quality (round robin in top N origins). |
| OriginPolicyBestCount | Yes | Long | The number of top origins. Valid values: 1 to 10. This parameter is required if the OriginPolicy parameter is set to quality. |
Sample request
POST method:
POST /2016-09-01/domain/SetOriginAdvancedConfig
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: SetOriginAdvancedConfig
x-version: 2016-09-01
Content-Type: application/json
{
"DomainId": "2D08M8V",
"Enable": "on",
"OriginType": "domain",
"Origin": "www.test1.com",
"BackupOriginType": "domain",
"BackupOrigin": "www.test2.com",
"OriginPolicy": "quality",
"OriginPolicyBestCount": 2
}
Sample response
Pure Mode