Activates Dynamic Route for CDN (DCDN).

Note DCDN can be activated only one time under each Alibaba Cloud account. The Alibaba Cloud account must pass real-name verification.

Debugging

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 software development kits (SDKs).

Request parameters

Parameter Type Required Example Description
Action String Yes OpenDcdnService

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

BillType String Yes PayByTraffic

The metering method of DCDN. A value of PayByTraffic indicates that the metering method is pay-by-data-transfer.

WebsocketBillType String Yes websockettraffic

The metering method of WebSocket. A value of websockettraffic indicates that the metering method of WebSocket is pay-by-data-transfer.

Response parameters

Parameter Type Example Description
RequestId String 97C68796-EB7F-4D41-9D5B-12B909D76503

The ID of the request.

Examples

Sample requests

http(s)://dcdn.aliyuncs.com/? Action=OpenDcdnService
&BillType=PayByTraffic
&WebsocketBillType=websockettraffic
&<common request parameters>

Sample responses

XML format

<OpenDcdnServiceResponse>
  <RequestId>97C68796-EB7F-4D41-9D5B-12B909D76503</RequestId>
</OpenDcdnServiceResponse>

JSON format

{
"RequestId":"97C68796-EB7F-4D41-9D5B-12B909D76503"
}

Error codes

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