Media Acceleration VoD,Media Acceleration Live Broadcast,Content Acceleration,Dynamic Web Acceleration
Delete one of the added accelerator domains. Cannot be enabled after deletion, only the accelerated domain name can be re-created.
Single user trigger frequency: 300/5min
| Name | Description |
|---|---|
*domainString | Domain name or Domain ID |
| Name | Description |
|---|---|
x-cnc-request-idString | Uniquely identified id for querying tasks per request (for all API) |
| Name | Description |
|---|---|
codeString | Error code, which appears when HTTPStatus is not 202, represents the error type of the current request call |
messageString | Response information, success when successful |
| Error code(code) | Description(message) | HTTP status | Semantic |
|---|---|---|---|
| NoSuchDomain | The specified domain name does not exist. | 400 | The specified domain name does not exist. |
| Forbidden | Domain name is being deleted | 403 | Domain name is being deleted |
| WRONG_OPERATOR | The author cannot operate the domain name | 400 | The author cannot operate the domain name |
| DELETEING_DOMAIN | Domain name has been deleted | 400 | Domain name has been deleted |
| CAN_NOT_DELETE_HANG_UP_DOMAIN | Domain name is being added for review | 400 | Domain name is being added for review |
| PARAM_INVALID | Parameter {0} null or illegal | 400 | Parameter {0} null or illegal |
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://{@apiDomain}/api/domain/123344" \
-X "DELETE" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/xml"HTTP/1.1 202 Accepted Date: Fri, 17 May 2017 06:33:26 GMT Content-Type: application/xml;charset=utf-8 x-cnc-request-id:c54cbbb4-19fe-407a-930c-3988b62ed2fd <?xml version="1.0" encoding="UTF-8"?> <response> <message>success</message> </response>