Integration overview

Updated at:

Learn how to integrate Dynamic Content Delivery Network (DCDN) through API, SDK, CLI, Terraform, and ROS.

Overview of OpenAPI Explorer

OpenAPI Explorer lets you search, debug, and call DCDN API operations online. It provides documentation, SDK sample code generation, error diagnosis, and call statistics. What is an OpenAPI?

Version description

API version

Description

2018-01-15

The recommended version.

Online debugging

DCDN supports API debugging in OpenAPI Explorer. Before calling an API operation, familiarize yourself with DCDN API versions, endpoints, and integration methods.

image

Debugging page

Access the debugging page of the DCDN API.

Endpoints

Select an endpoint based on the region where your resource resides to reduce latency. For example, if you use DCDN in the China (Zhangjiakou) region, the public endpoint is cn-zhangjiakoudcdn.aliyuncs.com.

For more information, see Endpoints.

User identities

By default, OpenAPI Explorer uses your Alibaba Cloud account for debugging. Because this account has full API permissions, we recommend that you use a RAM user for routine API calls and O&M. Grant the RAM user the required DCDN permissions before use. For more information, see Implement access control with RAM.

Identity

Supported

Alibaba Cloud account

Yes

RAM user (recommended)

Yes

RAM role (recommended)

Yes

References

Integration methods

DCDN supports multiple integration methods, including SDK and CLI.

Integration method

Supported

Alibaba Cloud SDK

Yes

Alibaba Cloud CLI

Yes

Terraform

Yes

Resource Orchestration Service (ROS)

Yes

Custom API encapsulation

Yes

Alibaba Cloud SDK

  • Alibaba Cloud SDKs are available in Java, C#, Go, Python, TypeScript, Node.js, PHP, and C++. SDKs handle signature logic, timeouts, and retries, and return structured response objects. For more information, see Alibaba Cloud SDKs.

  • Use Alibaba Cloud SDKs to call DCDN API operations. For supported languages and dependencies, visit the DCDN SDK Center.

Alibaba Cloud CLI

  • Run aliyun commands to interact with Alibaba Cloud services and manage resources. For more information, see What is Alibaba Cloud CLI

  • Use Alibaba Cloud CLI to call DCDN API operations. Sample commands.

Terraform

ROS

  • ROS automates cloud resource deployment through templates. Define resources such as ECS and ApsaraDB RDS instances and their dependencies, and ROS creates and configures them. For more information, see What is Resource Orchestration Service.

  • ROS supports DCDN API operations for regular resources only.

Custom API encapsulation

Usage notes

If an API call returns an error, verify your request parameters against the Service error codes

Use the Alibaba Cloud OpenAPI diagnostics platform to diagnose errors by request ID or SDK error message.