API 센터
Introduction
API-Key Authentication
AK/SK Authentication
APM
Edge Application
CDN Pro
Edge Computing Hosting
IAM
Media Acceleration Live Broadcast
Media Acceleration-Live
Media Acceleration
Cloud Live
Low Latency Streaming
Cloud VoD
API Shield
Application Shield
Web Application Firewall
Flood Shield
Cloud Security 2.0
Bot Shield
Flood Shield 2.0
Dynamic Web Acceleration
Content Acceleration
CloudDNS
Log Report
GetRequestsByRecordType
GetRequestsByLocationDistribution
GetRequestsByProcessTime
GetRequestsByResponseType
GetOverallRequests
Resource Manage
CLB Domain Management
Zone Management
Object Storage
Local Storage
Certificate MGMT
Content MGMT
IP Verification
Cloud Monitor
Log Download
Others

GetRequestsByRecordType

갱신 시간: 2022-12-13 11:12:03

Get Requests By Record Type. When querying all, the report will include the data of the deleted zone.

  • 단일 사용자 통화 빈도: 300/5min
  • 해당 상품(제품): CloudDNS

요청 파라미터

Params 파라미터

파라미터 이름설명
*fromNumber
from time(timestamp) (accurate to the second)
*toNumber
to time(timestamp) (accurate to the second)
intervalString
interval time, default is 'hourly'. Support interval:oneminute: 1 min.(Range <= 1 day);fiveminutes: 5 min(Range <= 7 days); hourly: 1 hr; daily: 1 day; monthly: 1 month; all: Without interval(Combine data into one, Range>=1hr)
zoneString
zone names, separeated by ',', case insensitive
timezoneNumber
timezone is necessary when interval=daily/monthly/all, the default timezone is 0 (UTC+0)

응답 파라미터

Body 파라미터

파라미터 이름설명
dataList
return data
tsNumber
timestamp (accurate to the second)
resultsList
data
typeString
record type(A,AAAA,CNAME,TXT,MX,SRV,RP,SPF,RP,PTR,NS,SOA,UNKNOWN)
countNumber
count
codeInteger
code,success is 0
messageString
error message or Success

에러 코드

에러 코드(code)설명(message)HTTP 상태 코드설명
0Success200Success
15252454Param error400Param error

예제

EG
EG
요청 예제
복사
#!/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/clouddns/requests/record_type?from=1653029521&to1653634321&interval=hourly" \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept-Language: en"
응답 예제
복사
{
  "code": "0",
  "message": "Success",
  "data": [
    {
      "ts": 1595602800,
      "results": [
        {
          "type": "A",
          "count": 3
        },
        {
          "type": "AAAA",
          "count": 3
        }
      ]
    },
    {
      "ts": 1595603100,
      "results": [
        {
          "type": "A",
          "count": 3
        },
        {
          "type": "AAAA",
          "count": 3
        }
      ]
    },
  ]
}

디렉토리

  • 요청 파라미터
  • 응답 파라미터
  • 에러 코드
  • 예제
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.