Media Acceleration-Live
StatusCode Report
QueryMultidomainsIPV6OrIPV4StatusCode
QueryStatusCodeDistributionOfeachISPandProvince
QueryISPProvinceStatusCode
QueryIPV6StatusOfeachISPandProvince
QueryRealTimeOriginStatusCode
QueryStatusCodeDistribution
QueryOriginStatusCodeDistribution
Bandwidth Report
Request Report
PV Report
Visitor Report
URL Report
Domain Management
Domain Configuration
Flow Report
Other

QueryMultidomainsIPV6OrIPV4StatusCode

Update time: 2025-03-26 10:18:22

ReportStatusCodeIpTypeService

  • Single user trigger frequency: 300/5min
  • Applicable Products: Content Acceleration,Dynamic Web Acceleration,Media Acceleration-Live,Media Acceleration,Media Acceleration Live Broadcast,Flood Shield,Flood Shield 2.0

Request

Body Params

NameDescription
dateFromString
Start date: 1.The time format is yyyy-MM-ddTHH:MM:ss+08:00. For example, 2019-01-01T10:00:00+08:00 2.Cannot exceed current time 3.The most recent six-month (183 days) data are available.
dateToString
End time: 1.The time format is yyyy-MM-ddTHH:MM:ss+08:00. For example, 2019-01-01T10:00:00+08:00 2.The end time needs to be greater than the start time. If the end time is greater than the current time, take the current time. 3.Date from, Date to both, the default query past 24 hours; If there is only one unsent, throw an exception 4.Maximum allowed query time interval: 7 days (with technical support adjustments), meaning that the difference between Date from and dateTo cannot exceed 7 days.
domainList
Domain: 1. The maximum number of domains is 200 by default (Technical Support Adjustment can be contacted); 2. Automatic filtering invalid domain name (if pass illegal domain name, can be filtered, query result only returns the data of valid domain name).
dataIntervalString
Data granularity: 1. Support 5m (5 minute granularity), 1h (1 hour granularity); 2. The default is 5m
ipTypeString
IP type: 1.The optional values are IPv6 and IPv4 2.If let this parameter empty,it will query all IP type
regionList
All region are queried by default, optional values are cn, am, apac, au, emea, hk, tw etc.

Response

Body Params

NameDescription
codeString
Request status code
messageString
Result message
dataList
Detail data of result
domainString
Domain
detailListList
timestampString
Time: the time slice included in the start time and end time
valueString
Number of status codes

Error code

Error code(code)Description(message)HTTP statusSemantic
24102013The accept header specified in your request is not acceptable.400The accept header specified in your request is not acceptable.
24102002There was an error in the body of your HTTP request.400There was an error in the body of your HTTP request.
24102006The date specified is invalid.400The date specified is invalid.
24102007You cannot specify a period greater than xx minute(s).400You cannot specify a period greater than xx minute(s).
24102021Date format error400Date format error
24102019The request was rejected because the number of domain(xx) exceeds the limit (xx).400The request was rejected because the number of domain(xx) exceeds the limit (xx).
24102008param: domain is null or invalid.400param: domain is null or invalid.
24102008param: dataInterval is null or invalid.400param: dataInterval is null or invalid.
24102019The request was rejected because the number of domain(xx) exceeds the limit (xx)400The request was rejected because the number of domain(xx) exceeds the limit (xx)
24102008param: ipType is null or invalid.400param: ipType is null or invalid.
24102500We encountered an internal error. Please try again.500We encountered an internal error. Please try again.

Example

JSON
JSON
Request example
Copy
#!/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://api.cdnetworks.com/api/report/status-code/ipv6" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-d '{
"dateFrom":"2020-12-15T00:00:00+08:00",
"dateTo":"2020-12-15T01:00:00+08:00",
"domain":["test.com"],
"dataInterval":"5m",
"ipType":"IPV6"
}'
Response example
Copy
{
  "code": "0",
  "message": "success",
  "data": [
    {
      "domain": "test.com",
      "statusCodeDataList": [
        {
          "statusCode": "400",
          "detailList": [
            {
              "timestamp": "2020-12-15 00:00",
              "value": "400"
            }
          ]
        }
      ]
    }
  ]
}

Directory

  • Request
  • Response
  • Error code
  • Example
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!