If you want to use Alibaba Cloud Content Delivery Network (CDN) to accelerate the delivery of content on a specific website, you must add the domain name that you want to accelerate to Alibaba Cloud CDN and specify the website as an origin server. Alibaba Cloud CDN caches content from origin servers to Alibaba Cloud CDN nodes to accelerate content delivery. This topic describes how to add a domain name to Alibaba Cloud CDN.
Notice
- If you have not set a cache expiration time on your origin server or CDN nodes, the CDN nodes use the default time-to-live (TTL) value of 3,600 seconds to expire cached resources. After you add a domain name to Alibaba Cloud CDN, you can modify the TTL value. The amount of back-to-origin network traffic and fees vary based on the TTL value. We recommend that you set a TTL value based on your business requirements. A small TTL value may cause CDN nodes to frequently redirect requests to the origin server and increase the amount of network traffic that is consumed by the origin server. For more information, see Create a cache expiration rule.
- Beginning from February 13, 2020, Alibaba Cloud CDN no longer supports the Live Streaming option when you set the Business Type parameter. If you want to accelerate live streaming content for a domain name, log on to the ApsaraVideo Live console to add and configure the domain name.
Procedure
API operations
You can call API operations listed in the following table to manage domain names.
API operation | Description |
---|---|
AddCdnDomain | Adds a domain name to Alibaba Cloud CDN. |
DeleteCdnDomain | Removes a domain name from Alibaba Cloud CDN. |
StopCdnDomain | Disables a domain name that is accelerated by Alibaba Cloud CDN. After the domain name is disabled, the value of the DomainStatus parameter is changed to Offline. |
StartCdnDomain | Enables a disabled domain name. After the domain name is enabled, the value of the DomainStatus parameter is changed to Online. |
BatchStartCdnDomain | Enables one or more domain names at a time. After a domain name is enabled, the value of the DomainStatus parameter is changed to Online. |
BatchSetCdnDomainConfig | Configures multiple accelerated domain names at a time. |
ModifyCdnDomain | Modifies the information about an accelerated domain name. |
DescribeUserDomains | Queries all domain names accelerated by Alibaba Cloud CDN under your account and the status of the accelerated domain names. You can filter domain names by name or status. Fuzzy match is supported. |
DescribeCdnDomainDetail | Queries the basic information about an accelerated domain name. |
DescribeDomainsBySource | Queries the domain names corresponding to origin servers under your account. |
BatchStopCdnDomain | Disables one or more accelerated domain names at a time. After an accelerated domain name is disabled, the value of the DomainStatus parameter is changed to Offline. |
DescribeCdnDomainConfigs | Queries the configurations of an accelerated domain name. You can query the configuration of one or more features at a time. |
DeleteSpecificConfig | Deletes specific configurations of an accelerated domain name. |
DescribeUserVipsByDomain | Queries virtual IP addresses of CDN nodes by domain name. |
BatchAddCdnDomain | Adds multiple domain names to Alibaba Cloud CDN at a time. You can add a maximum of 20 domain names to Alibaba Cloud CDN with each account. |
ModifyCdnDomainSchdmByProperty | Modifies the accelerated region for an accelerated domain name. |
BatchUpdateCdnDomain | Updates the configurations of multiple accelerated domain names at a time. |
SetWaitingRoomConfig | Configures the virtual waiting room feature for an accelerated domain name. This operation is available only for accelerated domain names of the DCDN workload type. |
Note You can query the virtual IP addresses of CDN nodes by domain name only by calling
API operations. For more information, see DescribeUserVipsByDomain.