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
Object Storage
Local Storage
Certificate MGMT
Content MGMT
IP Verification
IP check
QuerySpecificIPBelong
IpInfoService
Cloud Monitor
Log Download
Others

QuerySpecificIPBelong

갱신 시간: 2025-04-23 15:57:07

Query whether a given IP address belongs to our CDN IP. The user needs to provide a list of IP addresses. The returned result includes whether each IP address belongs to our CDN IP.

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

요청 파라미터

Body 파라미터

파라미터 이름설명
*ipList
IP address, use English comma to separate two items. Every IP address needs to following regular expression rule of ((2[0-4]\d|25[0-5]|1\d\d|0|[1-9]\d?)\.){3}(2[0-4]\d|25[0-5]|1\d\d|0|[1-9]\d?). The default number of IPs cannot exceed 20 (you can contact technical support to adjust) .

응답 파라미터

Body 파라미터

파라미터 이름설명
checkListList
checkList
responseString
yes: the IP belongs to Our system, no: the IP does not belong to Our system
ipString
IP addresses

에러 코드

에러 코드(code)설명(message)HTTP 상태 코드설명
INVALID_HTTP_REQUESTThere was an error in the body of your HTTP request.400IP has not been specified
PARAM_TOO_LONGParam length too long.400Number of queried IP exceeds 20
PARSE_PARAM_ERRORparse param error400IP does not conform to regular expression rules
SYSTEM_ERRORWe encountered an system error. Please try again.500System error

예제

JSON
JSON
요청 예제
복사
#!/bin/bash
# Please remember to change the param (-H "X-Time-Zone") in this demo to the TimeZone you want in response

  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/si/tools/ipCheck"   \
  -X "POST" \
-H "X-Time-Zone:GMT+08:00" \
  -u "$username:$password" \
  -H "Date: $date" \
  -H "Accept: application/json" \
 -d '{
      "ip":["1.1.1.1","2.2.2.2"]
  }'
응답 예제
복사
{
      "result": {
          "checkList": [
              {
                  "response":   "no",
                  "ip":   "1.1.1.1"
              },
              {
                  "response":   "no",
                  "ip":   "2.2.2.2"
              }
          ]
      },
      "code": 200
  }

디렉토리

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