You can call the DescribeCdnService operation to query the CDN service status. The status information includes the current effective billing method, the service activation time, the next effective billing method, and the current service status.

Debugging

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 DescribeCdnService.

Response parameters

Parameter Type Description
InternetChargeType String  The current billing method.
  • PayByTraffic
  • PayByBandwidth
  • PayByBandwidth95
  • PayByBandwidth_monthavg
  • PayByBandwidth_month4th
  • PayByBandwidth_monthday95avg
  • PayByBandwidth_nighthalf95
OpeningTime String The time when the CDN service was activated. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mmZ format.
ChangingChargeType String The billing method to be effective.
  • PayByTraffic
  • PayByBandwidth
  • PayByBandwidth95
  • PayByBandwidth_monthavg
  • PayByBandwidth_month4th
  • PayByBandwidth_monthday95avg
  • PayByBandwidth_nighthalf95
ChangingAffectTime Date The time when the change of the billing method starts to take effect. The time is displayed in GMT.
OperationLocks Struct The reason why the CDN service is locked. For example, the reason can be financial(overdue payments) or security-related.

Examples

Sample request

https://cdn.aliyuncs.com?&Action=DescribeCdnService&<Common request parameters>

Sample success response

JSON format

{
    "ChangingAffectTime" : "2014-11-27T16:00:00Z",
    "ChangingChargeType" : "PayByBandwidth",
    "InternetChargeType" : "PayByTraffic",
    "OpeningTime" : "2014-02-28T13:11:49Z",
    "OperationLocks" : {
        "LockReason" : []
    },
    "RequestId" : "BFFCDFAD-DACC-484E-9BE6-0AF3B3A0DD23"
}

Error codes

Error code Error message HTTP status code Description
OperationDenied Your account does not open CDN service yet 403 The error message returned because CDN has not been activated for your account.