Activates Alibaba Cloud Content Delivery Network (CDN). You must activate Alibaba Cloud CDN before you can manage domain names in Alibaba Cloud CDN.

The maximum number of times that each user can call this operation per second is 5.

Note You can activate Alibaba Cloud CDN only one time with each Alibaba Cloud account. Your account must pass real-name verification before you can activate Alibaba Cloud CDN.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes OpenCdnService

The operation that you want to perform. Set the value to OpenCdnService.

InternetChargeType String Yes PayByTraffic

The billing method of Alibaba Cloud CDN.

  • PayByTraffic: pay-by-data-transfer.
  • PayByBandwidth: pay-by-bandwidth.

Response parameters

Parameter Type Example Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request.


Sample requests

http(s):// Action=OpenCdnService
&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": "97C68796-EB7F-4D41-9D5B-12B909D76508"

Error codes

HttpCode Error code Error message Description
403 Forbidden.Intl User not authorized to open Intl service. The error message returned because Alibaba Cloud CDN is available to only selected users.
400 InvalidInternetChargeType.ValueNotSupported The specified value of parameter "InternetChargeType" is not valid. The error message returned because the specified value of the InternetChargeType parameter is invalid.
400 CdnService.HasOpened Your cdn service has opened. The error message returned because Alibaba Cloud CDN is already activated under your account. You do not need to activate the service again.
400 InsufficientBalance Your account does not have enough balance. The error message returned because the balance in your account is insufficient. Top up your account balance and try again.
400 NoRealNameAuthentication Real name authentication is needed. The error message returned because your account has not passed real-name verification.
403 Forbidden.BidUser Bid user is limited to open service. The error message returned because you are not authorized to use this service.
400 FUWU_BIZ_COMMODITY_VERIFY_FAIL_INVALID_PAY_METHOD INVALID_PAY_METHOD The error message returned because the specified payment method is invalid.
400 FUWU_BIZ_COMMODITY_VERIFY_FAIL_USERPROFILECOMPLETE MISSING_USERPROFILE The error message returned because the required user profile is missing.
400 LX_CREATE_ORDER_FAILED Create order failed The error message returned because the order failed to be created.

For a list of error codes, visit the API Error Center.