Content Acceleration,Dynamic Web Acceleration,Media Acceleration VoD,Media Acceleration Live Broadcast
Protocol caching and push configuration are ignored through interface self-service queries
Single user trigger frequency: 300/5min
| Name | Description |
|---|---|
*domain-nameString | Domain name or domain ID that needs to be queried for configuration. |
| Name | Description |
|---|---|
domain-nameString | Domain name or domain ID that needs to be queried for configuration. |
domain-idString | Domain name or domain ID that needs to be queried for configuration. |
ignore-protocol-rulesList | Ignore protocol caching and push configuration, parent tags
1. This must be filled when protocol cache and push configuration need to be ignored
2. |
path-patternString | Url matching pattern, support regular, if all matches, input parameters can be configured as:.* |
except-path-patternString | The exception url matches the pattern in the same format as the path-pattern |
cache-ignore-protocolString | Whether to ignore the protocol cache, with allowable values of true and false. True turns on the HTTP/HTTPS Shared cache. Not on by default. |
purge-ignore-protocolString | It is recommended to use with cache-ignore protocol to avoid push failure.
Note:
1. Once configured, the global effect is not applied to the matched path-pattern.
2. Directory push does not distinguish protocols, while url push can distinguish protocols |
data-idLong | When configuring multiple groups of configurations, specify the id of a particular group of configurations |
| Error code(code) | Description(message) | HTTP status | Semantic |
|---|---|---|---|
| InvalidParameter | No domain was specified.\n\n | 400 | No domain was specified.\n\n |
| NoSuchDomain | The specified domain does not exist. | 404 | The specified domain does not exist. |
| CustomerNoOwnDomain | customer not own domain name[XXX]\n | 400 | customer not own domain name[XXX]\n |
#!/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/config/ignoreprotocol/123344" \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-H "Content-Type:application/json"HTTP/1.1 200 OK
Date: Sun, 05 May 2019 09:08:53 GMT
Content-Type: application/json;charset=utf-8
x-cnc-request-id: 83bbebc7-2c95-47d7
{
"domain-name":"www.example.com",
"domain-id":"123344",
"ignore-protocol-rules":[
{
"data-id":"111111",
"path-pattern":".*",
"except-path-pattern":"",
"cache-ignore-protocol":"true",
"purge-ignore-protocol":"true"
}
]
}