All Products
Search
Document Center

Dynamic Content Delivery Network:Integration overview

Last Updated:Sep 18, 2024

This topic describes basic information about the Dynamic Content Delivery Network (DCDN) API.

Overview of OpenAPI Explorer

Alibaba Cloud provides OpenAPI Explorer for developers to understand and use the API operations of Alibaba Cloud services in a quick and efficient manner. OpenAPI Explorer integrates multiple features related to API operations, including intelligent search, documentation, online debugging, SDK download, sample code, error diagnosis, and call statistics. In OpenAPI Explorer, you can call the API operations of Alibaba Cloud services and view API requests and responses. In addition, OpenAPI Explorer automatically generates the corresponding SDK sample code to facilitate the use of Alibaba Cloud services. For more information, see What is an OpenAPI?

Version description

API version

Description

2018-01-15

The recommended version.

Online debugging

DCDN provides features such as API debugging in OpenAPI Explorer. Before you call an API operation, make sure that you are familiar with the information about DCDN, such as the API versions, endpoints, and integration methods.

image

Debugging page

Access the debugging page of the DCDN API.

Endpoints

You can select an endpoint based on the region in which 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, after you log on to OpenAPI Explorer with your Alibaba Cloud account, the account is used to perform online debugging. An Alibaba Cloud account has permissions on all API operations. If you use an Alibaba Cloud account to call API operations, security risks may arise. We recommend that you call API operations or perform routine O&M as a Resource Access Management (RAM) user. Before you call API operations as a RAM user, grant the required permissions to the RAM user based on your business requirements. The RAM user must have the permissions to manage DCDN resources. For more information, see Use RAM to implement access control.

Identity

Supported

Alibaba Cloud account

Yes

RAM user (recommended)

Yes

RAM role (recommended)

Yes

References

Integration methods

DCDN provides various integration methods such as SDK and CLI. You can select a method based on your business requirements.

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 provides SDKs in multiple programming languages, including Java, C#, Go, Python, TypeScript, Node.js, PHP, and C++. You can integrate SDKs into your applications to directly call API operations. The SDKs encapsulate information such as the signature logic, timeout mechanism, and retry mechanism and return structured response objects based on specifications. This provides convenience for developers. For more information, see Alibaba Cloud SDKs.

  • You can use Alibaba Cloud SDKs to call DCDN API operations. For more information about supported languages and dependencies, visit the DCDN SDK Center.

Alibaba Cloud CLI

  • You can run aliyun commands to interact with Alibaba Cloud services and manage cloud service resources. For more information, see What is Alibaba Cloud CLI?

  • You can use Alibaba Cloud CLI to call DCDN API operations. For more information, see Sample commands.

Terraform

ROS

  • ROS is an Alibaba Cloud service that can simplify the management of cloud computing resources. You can create a template to describe the cloud computing resources that you need, such as Elastic Compute Service (ECS) and ApsaraDB RDS instances, and the relationship between the resources. ROS automatically creates and configures all resources based on the template to implement automated deployment and O&M. For more information, see What is ROS?.

  • You can use ROS to call DCDN API operations. Only regular resources can be orchestrated by using ROS.

Custom API encapsulation

Usage notes

If an error is returned after you call an API operation, check whether the request parameters and the parameter values are valid based on the returned error code. For more information, see Service error codes.

You can also use the Alibaba Cloud OpenAPI diagnostics platform to perform self-service diagnostics based on the returned request ID or SDK error message.