You can call the StopCdnDomain operation to disable a CDN domain. The DomainStatus parameter of the disabled CDN domain is changed to Offline.

Note After a CDN domain is disabled, CDN retains its information and reroutes queries to the origin.

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

Response parameters

Parameter Type Description
RequestId String The ID of the request.

Examples

Sample request

http://cdn.aliyuncs.com?Action=StopCdnDomain&DomainName=example.com&<Common request parameters>

Sample success response

JSON format

{
  "RequestId": "324AEFFF-308C-4DA7-8CD3-01B277B98F28"
}

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.