To send an Alibaba Cloud Dynamic Route for CDN (DCDN) API request, you must send an HTTP GET request to the Alibaba Cloud DCDN endpoint. You must add the request parameters that correspond to the API operation being called. After you call the API, the system returns a response. The request and response are encoded in UTF-8.

Request syntax

DCDN API operations use the RPC protocol. You can call DCDN API operations by sending HTTP GET requests. DCDN supports both HTTP and HTTPS requests. For data security, we recommend that you send HTTPS requests. All requests and responses are UTF-8 encoded. The request syntax is as follows:

  • Endpoint: the endpoint of the DCDN API is
  • Action: the name of the operation being performed. For example, to add an accelerated domain, you must set the Action parameter to AddDcdnDomain.
  • Version: the version of the DCDN API. Set the value to 2018-01-15.
  • Parameters: the request parameters for the operation. Separate multiple parameters with ampersands (&). Request parameters include both common parameters and operation-specific parameters. Common parameters are used for all DCDN API calls regardless of the operation. For more information, see Common request parameters.

The following example demonstrates how to call the AddDcdnDomain operation in DCDN.

Note The following code has been edited to improve the readability. &