Content Acceleration,Dynamic Web Acceleration,Media Acceleration VoD,Media Acceleration Live Broadcast
Query the list of all domain name names corresponding to the origin station IP under the user account.
Single user trigger frequency: 1/5min
| Name | Description |
|---|---|
*originipString | Origin station IP, multiple IPs separated by semicolons |
| Name | Description |
|---|---|
x-cnc-request-idString | Uniquely identified id for querying tasks per request (for all API) |
| Name | Description |
|---|---|
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(code) | Description(message) | HTTP status | Semantic |
|---|---|---|---|
| NotAcceptable | Acceptable MIME type can only be json | 406 | Acceptable MIME type can only be json |
| OriginIpExcessive | The source IP address of the query exceeds the limit | 403 | The source IP address of the query exceeds the limit |
| InvalidOriginIp | The source IP you provided is invalid. | 404 | The source IP you provided is invalid. |
| InternalError | Internal error such as server exception, data acquisition failure, etc. | 500 | Internal error such as server exception, data acquisition failure, etc. |
#!/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"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"
]
}
]
}
}