All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

ModifyCdnDomainBasicInfo

Last updated:2021-03-17 10:54:43

ModifyCdnDomainBasicInfo

Description

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:

  • You can modify the origin information and regions, but not the business type.

Request syntax

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.

Request parameters

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.

Examples

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

  • Note: If this operation is successfully called, the HTTP status code 200 is returned, without a return value. If this operation fails to be called, the HTTP status code 403 or 400 is returned. For more information about the error codes for the HTTP status code 400, see Usage notes.
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback