QueryHttpCodeCasheConfig

Update time: 2026-08-14 11:16:28

Applicable Products

Dynamic Web Acceleration,Media Acceleration VoD,Media Acceleration Live Broadcast,Content Acceleration

API Description

Get http code cache configurations.

  • API URL: https://api.atomile.com/api/config/httpcodecache/*
  • Method: GET
  • Limit Description: · The accelerated domain name must have been filed. · Accelerated domain names must not contain the following information: sales of drugs and controlled tools, including illegal speech and information. · Video-accelerated domain names must have audiovisual licenses; blog forums or community-based accelerated domain names must have BBS special approval qualifications. · Interface requests and return results only accept xml format.

Call frequency

Single user trigger frequency: 300/5min

Request parameter(s)

Path Params

NameDescription
*domain-nameString
Domain name or domain ID that needs to be queried for configuration.

Response parameter(s)

Body Params

NameDescription
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.
http-code-cache-rulesList
State Code Caching Rule Configuration, parent node 1. When you need to set state code caching rules, this must be filled in. 2. Configuration of Clear State Code Caching Rules for .
http-codesList
Configure HTTP status code, parent node
cache-ttlInteger
Define the caching time of the specified status code in units s, 0 to indicate no caching
data-idInteger
Add a grid type identifier to indicate a specific group configuration when the client has multiple groups of configurations.

Error code

Error code(code)Description(message)HTTP statusSemantic
InvalidParameterNo domain was specified.400No domain was specified.
NoSuchDomainThe specified domain does not exist.404The specified domain does not exist.
CustomerNoOwnDomaincustomer not own domain name[xxx]400customer not own domain name[xxx]
InvalidParameterNo domain was specified.400No domain was specified.
NoSuchDomainThe specified domain does not exist.404The specified domain does not exist.
CustomerNoOwnDomaincustomer not own domain name[xxx]400customer not own domain name[xxx]
InvalidParameterNo domain was specified.400No domain was specified.
NoSuchDomainThe specified domain does not exist.404The specified domain does not exist.
CustomerNoOwnDomaincustomer not own domain name[xxx]400customer not own domain name[xxx]

Example

JSON
XML
JSON
Request example
Copy Copy success
#!/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/httpcodecache/123344" \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-H "Content-Type:application/json"
Response example
Copy Copy success
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-id":"123344",
"domain-name":"www.example.com",
"http-code-cache-rules":[
  {
    "data-id":"1",
    "cache-ttl":"60",
    "http-codes":["404"]
  },
  {
    "data-id":"2",
    "cache-ttl":"30",
    "http-codes":["500","501"]
  }
 ]
}