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
Basic Domain Configuration
ModifyCdnDomainBasicInfo
Last updated:2021-03-17 10:54:43
You can call this operation to modify basic information about a domain name, which can be an exact domain name or a wildcard domain name.
Note:
The API request contains the specified directory /2016-09-01/domain/ModifyCdnDomainBasicInfo, common request headers, and operation-specific request parameters. For more information, see the sample request.
| Parameter | Required | Type | Description |
|---|---|---|---|
| DomainId | Yes | String | The ID of the domain name. |
| Regions | No | String | The region in which content delivery is accelerated, which is CN by default. Separate multiple regions with commas (,). For more information about the enumeration types, see Usage notes. |
| OriginType | No | String | The type of the origin. Valid values: ipaddr (IP address), domain (domain name), and KS3. |
| OriginProtocol | No | String | The back-to-origin protocol. Valid values: http, https, and follow. If the business type is file, video, or page, the back-to-origin protocol is http, https, or follow. The value follow indicates that the access protocol is used as the back-to-origin protocol. If the business type is live, the back-to-origin protocol cannot be modified. |
| Origin | No | String | The back-to-origin address, 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. |
| SearchUrl | No | String | The search URL. You can specify only one URL at a time. This parameter is required for a wildcard domain name, and is ignored for an exact domain name. |
Sample request
GET method:
GET /2016-09-01/domain/ModifyCdnDomainBasicInfo?DomainId=2D08M8V&Regions=AS,CN&OriginType=ipaddr&OriginPort=80&Origin=1.1.33.44
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: ModifyCdnDomainBasicInfo
x-version: 2016-09-01
POST method:
POST /2016-09-01/domain/ModifyCdnDomainBasicInfo
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: ModifyCdnDomainBasicInfo
x-version: 2016-09-01
Content-Type: application/x-www-form-urlencoded
DomainId=2D09XC0&Regions=AS,CN&OriginType=ipaddr&OriginPort=80&Origin=www.test.com
{
"DomainId": "2D08M8V",
"Regions":"AS,CN",
"OriginType":"ipaddr",
"OriginPort":"80",
"Origin":"1.1.33.44"
}
Sample response
Pure Mode