CreateDomain
1. API Description
This API (CreateDomain) is used to create an accelerated domain.
Preparation
Query the business types for accelerated domains: Call
DescribeBusinessTypes
.Query the acceleration regions for accelerated domains: Call
DescribeAccelerationRegions
.
Notes
The
domain
must be globally unique and cannot be duplicated.The
domainName
must not be the same as the origin, as this will create a loop and prevent acceleration from working.This is an asynchronous API. After a successful request, the creation of the accelerated domain is not immediately complete. During this period, the status of the accelerated domain will be
Deploying
. You can check the status of the accelerated domain by calling theDescribeCdnDomains
API. If the domain status changes fromDeploying
toDeployed
, the deployment is successful; if it changes toFailed
, the configuration failed.
2. Request Parameters
The following table lists the required request parameters for this API.
3. Output Parameters
4. Code Example
Create an Accelerated Domain
5. Error Codes
The following includes error codes encountered in business logic. For other error codes, see Common Error Codes.
Last updated