QueryDomainByOriginIP

Update time: 2026-07-29 13:53:49

Applicable Products

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

API Description

Query the list of all domain name names corresponding to the origin station IP under the user account.

Call frequency

Single user trigger frequency: 1/5min

Request parameter(s)

Params Params

NameDescription
*originipString
Origin station IP, multiple IPs separated by semicolons

Response parameter(s)

Response Header

NameDescription
x-cnc-request-idString
Uniquely identified id for querying tasks per request (for all API)

Body Params

NameDescription
codeInteger
Code =200 indicates that relevant data was returned successfully
originipString
Query the origin station IP
domainListList
Returns a list of domain name names corresponding to each origin station IP

Error code

Error code(code)Description(message)HTTP statusSemantic
NotAcceptableAcceptable MIME type can only be json406Acceptable MIME type can only be json
OriginIpExcessiveThe source IP address of the query exceeds the limit403The source IP address of the query exceeds the limit
InvalidOriginIpThe source IP you provided is invalid.404The source IP you provided is invalid.
InternalErrorInternal error such as server exception, data acquisition failure, etc.500Internal error such as server exception, data acquisition failure, etc.

Example

JSON
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 "http://{@apiDomain}/api/originaldomainlist?originip=221.238.24.56;221.238.24.58" \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json"
Response example
Copy Copy success
HTTP/1.1 200 OK
Server: openresty/1.11.2.2
Date: Mon, 27 May 2019 02:10:27 GMT
Content-Type: application/json;charset=utf-8
Content-Length: 2355
Connection: keep-alive
App-Name: service_confApi
x-cnc-request-id: 8e170db2-3efd-45f6
{
  "code": 200,
  "result": {
    "DomainList": [
      {
        "originIp": "221.238.24.56",
        "domainList": [
          "171101.example.com",
          "171102.example.com",
          "171103.example.com"
        ]
      },
      {
        "originIp": "221.238.24.58",
        "domainList": [
          "171104.example.com",
          "171105.example.com",
          "171106.example.com"
        ]
      }
    ]
  }
}