Domain name for API request: teo.intl.tencentcloudapi.com.
After creating a site, you can create an acceleration domain name through this API.
In CNAME mode, if site ownership verification is ongoing, this API will return domain ownership verification info. You can verify domain ownership separately. For details, see Site/Domain Name Ownership Verification.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: CreateAccelerationDomain. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
| Region | No | String | Common Params. This parameter is not required. |
| ZoneId | Yes | String | Zone ID of the acceleration domain name. |
| DomainName | Yes | String | Acceleration domain name. |
| OriginInfo | Yes | OriginInfo | Origin server information. |
| OriginProtocol | No | String | Origin-pull protocol. Valid values: |
| HttpOriginPort | No | Integer | HTTP origin-pull port. Default value: 80. Value range: 1–65535. This parameter is valid only when OriginProtocol is FOLLOW or HTTP. |
| HttpsOriginPort | No | Integer | HTTPS origin port. Default value: 443. Value range: 1–65535. This parameter is valid only when OriginProtocol is FOLLOW or HTTPS. |
| IPv6Status | No | String | IPv6 status. Valid values:on: Enabled status; |
| SharedCNAME | No | String | Shared CNAME address bound to the specified domain. If not specified, the default CNAME is used. Binding a shared CNAME requires the scheduling policies of all domains to be consistent. The following configurations affect the scheduling policy. When they are inconsistent, binding a shared CNAME is processed as follows: - IPv6 access: not allowed to create a domain name. Modify IPv6Status to match the domain configuration of the rest bound to the shared CNAME. -DDoS protection: If DDoS protection is enabled for the selected shared CNAME, DDoS protection will be enabled for the domain by default when you create the domain. -Network optimization in the Chinese mainland (international acceleration): You are not allowed to create a domain name. Make sure the network optimization in the Chinese mainland (international acceleration) configuration of the current domain name is consistent with the rest of the domain names bound to the shared CNAME, and try again later. Note: Shared CNAME is currently in beta test. To use it, contact us to enable it. |
| Parameter Name | Type | Description |
|---|---|---|
| OwnershipVerification | OwnershipVerification | If ownership of your site is not verified, you can use the returned message through this parameter to verify domain name ownership separately. For details, see Site/Domain Name Ownership Verification. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to create an acceleration domain name and use the designated shared CNAME.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAccelerationDomain
<Common request parameters>
{
"ZoneId": "zone-225qgrnvbi9w",
"DomainName": "www.example.com",
"OriginInfo": {
"OriginType": "ip_domain",
"Origin": "1.1.1.1"
},
"OriginProtocol": "FOLLOW",
"HttpOriginPort": 80,
"HttpsOriginPort": 443,
"IPv6Status": "follow",
"SharedCNAME": "sharedomain.225qgrnvbi9w.share.dnse5.com"
}
{
"Response": {
"OwnershipVerification": null,
"RequestId": "3d310306-f298-439a-9daa-29eec8490769"
}
}
This example shows you how to create an acceleration domain name for an AWS S3 origin server, with private network access enabled and authentication algorithm set to AWS Signature Version 2.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAccelerationDomain
<Common request parameters>
{
"ZoneId": "zone-225qgrnvbi9w",
"DomainName": "qq.com",
"OriginInfo": {
"OriginType": "AWS_S3",
"Origin": "test.s3.ap-east-1.amazonaws.com",
"PrivateAccess": "on",
"PrivateParameters": [
{
"Name": "AccessKeyId",
"Value": "nMirpdWhhT6bxPsaFwYM1SzQrTest"
},
{
"Name": "SecretAccessKey",
"Value": "AKID***********************************************"
},
{
"Name": "SignatureVersion",
"Value": "v2"
},
{
"Name": "Region",
"Value": "ap-east-1"
}
]
}
}
{
"Response": {
"RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a703"
}
}
Create an acceleration domain name with the origin server type as VOD, and specify origin retrieval for all files within the VOD application corresponding to the current origin server.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAccelerationDomain
<Common request parameters>
{
"ZoneId": "zone-36oiczk333c3",
"DomainName": "vbt-06.bennyddeng.work",
"OriginInfo": {
"OriginType": "VOD",
"Origin": "220643",
"VodOriginScope": "all"
}
}
{
"Response": {
"OwnershipVerification": null,
"RequestId": "ec58b4d5-9154-4fd8-a148-7b39af634f2b"
}
}
Create an acceleration domain name with the origin server type as VOD, and specify origin retrieval for files in a bucket under the VOD application corresponding to the current origin server.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAccelerationDomain
<Common request parameters>
{
"ZoneId": "zone-36oiczk333c3",
"DomainName": "vbt-05.bennyddeng.work",
"OriginInfo": {
"OriginType": "VOD",
"Origin": "220643",
"VodOriginScope": "bucket",
"VodBucketId": "9n15dnlrwu800zh"
}
}
{
"Response": {
"OwnershipVerification": null,
"RequestId": "8e26894c-e6f5-43ae-be0e-ef2377b88ea6"
}
}
This example shows you how to create an acceleration domain name for a domain-name origin server.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAccelerationDomain
<Common request parameters>
{
"ZoneId": "zone-225qgrnvbi9w",
"DomainName": "qq.com",
"OriginInfo": {
"OriginType": "ip_domain",
"Origin": "www.test.com"
}
}
{
"Response": {
"RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation | Operation failed. |
| InternalError.ConfigLocked | The configuration has been locked. Unlock it and retry. |
| InvalidParameter.AdvancedOriginRoutingNotSupportNewlyAddedHost | You cannot enable advanced origin optimization when adding a domain. Turn off advanced origin optimization and try again. |
| InvalidParameter.ConflictHostOrigin | The origin server cannot be the same as the domain name. |
| InvalidParameter.ErrInvalidActionParam | Unauthorized operations - Illegal parameters. |
| InvalidParameter.InvalidAccelerateType | Parameter error. |
| InvalidParameter.InvalidAwsPrivateAccess | Invalid third-party object storage. |
| InvalidParameter.InvalidAwsRegion | Fill in the region correctly as a private network access parameter for third-party object storage. |
| InvalidParameter.InvalidClientIpOrigin | Invalid origin server for subregional origin-pull. |
| InvalidParameter.InvalidIpv6Switch | Invalid Ipv6 switch configuration. |
| InvalidParameter.InvalidOrigin | Invalid origin server. |
| InvalidParameter.InvalidOriginIp | Private IP addresses or loopback addresses are not supported as the origin server address. |
| InvalidParameter.InvalidPrivateAccessParams | Fill in AccessKeyId and SecretAccessKey as private network access parameters for third-party object storage. |
| InvalidParameter.InvalidPrivateAccessSwitch | Specify the PrivateAccess parameter value as on/off. |
| InvalidParameter.InvalidQuicBilling | The package does not support Quic configuration. |
| InvalidParameter.InvalidServerName | Invalid origin-pull Host. |
| InvalidParameter.InvalidStandardDebugClientIp | Invalid client ip or ip range. |
| InvalidParameter.InvalidWebSocketTimeout | Invalid WebSocket. |
| InvalidParameter.PostMaxSizeLimitExceeded | Maximum upload size exceeds limit |
| InvalidParameter.SpaceNotBindOrigin | Shield Space is not bound to an origin server. Please bind an origin server first and try again. |
| InvalidParameter.ZoneIsGrayPublishing | Site is upgrading. Changes are not currently supported. Try again later. |
| InvalidParameterValue.ConflictRecord | Conflicts with an added record. |
| InvalidParameterValue.ConflictWithDNSSEC | The DNS record conflicts with the DNSSEC feature. |
| InvalidParameterValue.ConflictWithDomain | The DNS record conflicts with acceleration domain name record. |
| InvalidParameterValue.ConflictWithNSRecord | The DNS record conflicts with the NS record. |
| InvalidParameterValue.ContentSameAsName | Host record and record value cannot have the same value. |
| InvalidParameterValue.DomainNotMatchZone | The domain name in the input parameters does not match the site parameter. Correct it and try again. |
| InvalidParameterValue.InvalidDNSContent | DNS record content error. |
| InvalidParameterValue.InvalidDNSName | DNS record name error. |
| InvalidParameterValue.InvalidDomainName | Invalid acceleration domain name. It can contain digits, letters (a-z and A-Z), and hyphens, but hyphens are not allowed at the beginning or end. |
| InvalidParameterValue.InvalidProxyOrigin | DNS proxy domain name origin site error. |
| InvalidParameterValue.InvalidSiteFailoverUnsupported | A source station fault migration configuration item is configured under an unsupported match condition. Delete the configuration. |
| InvalidParameterValue.OriginGroupNotExists | The specified origin server group does not exist. |
| InvalidParameterValue.SiteFailoverNotSupportHostOriginTypeVod | Origin server failover does not support VOD origin servers. |
| OperationDenied | Operation denied. |
| OperationDenied.AccelerateMainlandDisable | Feature in beta test. Contact sales to enable "network optimization in the Chinese mainland (international acceleration)". |
| OperationDenied.ConfigLocked | The configuration has been locked. Unlock it and retry. |
| OperationDenied.DisableZoneNotCompleted | Site disabling not complete. Try again later. |
| OperationDenied.DomainNoICP | The domain name has not obtained an ICP Filing. |
| OperationDenied.ErrZoneIsAlreadyPaused | Site disabled. Turn it on and try again. |
| OperationDenied.InvalidAdvancedDefenseZoneArea | To enable Anti-DDoS, the site acceleration region must be Chinese mainland. |
| OperationDenied.LoadBalanceStatusNotInOnline | The bound load balancer is not in the running state. Operation not allowed. |
| OperationDenied.RecordIsForbidden | DNS record is not allowed to be added. |
| OperationDenied.ResourceLockedTemporary | Currently there are parallel request operations that repel each other. Please try again later. |
| OperationDenied.VersionControlIsGraying | A test version is in use. Publish the test version to the production environment or roll back the test version and try again. |
| ResourceInUse | The resource is occupied. |
| ResourceInUse.DnsRecord | That domain name is being parsed. If you need to enable acceleration, please go to the DNS record page to enable acceleration. |
| ResourceNotFound | The resource does not exist. |
| ResourceUnavailable.DomainAlreadyExists | The current domain is connected to EdgeOne. To connect it to the current account, retrieve the domain name. |
| ResourcesSoldOut.L7LackOfResources | Resources are sold out due to high demand. We are urgently restocking. New domain names cannot be added now. Please wait patiently. |
| UnauthorizedOperation.CamUnauthorized | Unauthorized Cam operation. |
| UnauthorizedOperation.NoPermission | The sub-account does not have operation permissions. Add the required permissions and try again. |
| UnauthorizedOperation.Unknown | Unknown error occurs on the real server. |
フィードバック