You can call the StartCdnDomain operation to enable a CDN domain. The DomainStatus parameter of the enabled CDN domain is changed to Online.

Note If a CDN domain is in an invalid state or your account has an overdue payment, the CDN domain cannot be enabled.


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 StartCdnDomain.
DomainName String Yes The name of the CDN domain to be enabled.

Response parameters

Parameter Type Description
RequestId String The ID of the request.


Sample request<Common request parameters>

Sample success response

JSON format

  "RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"

Error codes

Error code Error message HTTP status code Description
InvalidDomain.NotFound The domain provided does not belong to you. 404 The error message returned because the specified domain does not exist or does not belong to you.
IllegalOperation Illegal domain operate is not permitted. 403 The error message returned because you are not authorized to perform this operation.
ServiceBusy The specified Domain is configuring, please retry later. 403 The error message returned because the specified domain is being configured. Try again later.