All Products
Search
Document Center

CDN:Integration overview

Last Updated:Jun 03, 2026

Integrate with Alibaba Cloud CDN through OpenAPI Explorer, SDKs, CLI, Terraform, or direct HTTP calls.

OpenAPI Explorer

OpenAPI Explorer lets you search APIs, access documentation, debug and call Alibaba Cloud APIs, view requests and responses, acquire SDKs, browse sample code, diagnose errors, and view call statistics. What is an API?

Version

Version

Description

2018-05-10

Recommended.

Online debugging

CDN supports API debugging in OpenAPI Explorer. Before calling an API, review the supported versions, endpoints, and integration methods of Alibaba Cloud CDN.

Example: To call AddCdnDomain, go to Domain Management > Add/Delete Domain Names > Add Domain Name (AddCdnDomain). Set the required parameters (CdnType, DomainName, Sources) and optional parameters (ResourceGroupId, CheckUrl, Scope, TopLevelDomain), then click Initiate Call. Requirements: CDN activated, domain with ICP filing, one domain per call, up to 50 domains per account, 30 calls per second.

Debugging portal

Access the CDN API Debugging Center.

Endpoints

Select the endpoint closest to your resources to reduce latency. For example, the CDN endpoint in China (Shanghai) is cn-shanghai.aliyuncs.com.

All available endpoints are listed in Endpoints.

User identity

OpenAPI Explorer uses your Alibaba Cloud account by default, which has full API permissions. Use a RAM user for API calls and daily O&M, and grant only the CDN permissions your workload requires. Implement access control with RAM.

Identity

Supported

Alibaba Cloud account

Yes

RAM user (recommended)

Yes

RAM role (recommended)

Yes

References

Integration methods

CDN supports the following integration methods.

Integration method

Supported

Alibaba Cloud SDK (recommended)

Yes

Alibaba Cloud CLI

Yes

Terraform

Yes

Resource Orchestration Service (ROS)

Yes

Making direct API calls

Yes

Alibaba Cloud SDK

  • The Alibaba Cloud SDK supports Java, C#, Go, Python, Node.js/TypeScript, PHP, and C++, and handles signature calculation, timeouts, and retries automatically, returning structured response objects.

  • For CDN SDK language support and installation instructions, visit the CDN SDK Center.

Alibaba Cloud CLI

Terraform

Resource Orchestration Service (ROS)

Making direct API calls

Error handling

If an API call returns an error, look up the error code in the Error Code Center.

Use the RequestID from the response or SDK error message on the Alibaba Cloud OpenAPI Diagnostics platform to troubleshoot errors.