You can call the OpenCdnService operation to activate CDN. You can manage domains only after you activate CDN.

  • After the CDN service is activated, it cannot be deactivated.
  • Before you activate CDN, make sure that you have completed real-name authentication for your account.


Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Description
Action String  Yes The operation that you want to perform. Set this parameter to OpenCdnService.
InternetChargeType String  Yes The billing method of CDN. Valid values: PayByTraffic and PayByBandwidth. Default value: PayByTraffic.

Response parameters

Parameter Type Description
RequestId String The ID of the request.


Sample request<Common request parameters>

Sample success response

JSON format


Error codes

Error code Error message HTTP status code Description
Forbidden.Intl User not authorized to open Intl service. 403 The error message returned because you are not authorized to activate the international site service.
InvalidInternetChargeType.ValueNotSupported The specified value of parameter InternetChargeType is not valid. 400 The error message returned because the specified InternetChargeType parameter is invalid.
CdnService.HasOpened Your CDN service has opened. 400 The error message returned because the CDN service is already activated.
InsufficientBalance Your account does not have enough balance. 400

The error message returned because your account balance is insufficient.

NoRealNameAuthentication Real-name authentication is needed. 400 The error message returned because you have not performed real-name registration.