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.
- The maximum number of times that each user can call this operation per second is 5.
Debugging
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.