QuerySrcInfo

Update time: 2026-08-14 11:24:51

Applicable Products

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

API Description

Query the customer advanced source configuration through the interface

  • API URL: https://api.atomile.com/api/basicconfig/advancedsource/*
  • Method: GET
  • Limit Description: 1)The accelerated domain name must have been filed. 2)Accelerated domain names must not contain the following information: sales of drugs and controlled tools, including illegal speech and information. · Video-accelerated domain names must have audiovisual licenses; blog forums or community-based accelerated domain names must have BBS special approval qualifications. · Interface requests and return results only accept xml format.

Call frequency

Single user trigger frequency: 300/5min

Error code

Error code(code)Description(message)HTTP statusSemantic
NoSuchOperatorThe specified operator does not exist.404The specified operator does not exist.
NoSuchCustomerThe specified customer name does not exist.404The specified customer name does not exist.
NoSuchCustomerThe specified customer id does not exist.404The specified customer id does not exist.
NoSuchRequestIDThe specified request id does not exist.404The specified request id does not exist.
DuplicatedRequestIDThe specified request id already exist.400The specified request id already exist.
NoSpecifiedDomainYou must specified domain.400You must specified domain.
NoSuchDomainThe specified domain does not exist.404The specified domain does not exist.
DomainNotRestoredThe domain you are trying to cancel has not been restored.409The domain you are trying to cancel has not been restored.

Example

JSON
XML
JSON2
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 "https://{@apiDomain}/api/basicconfig/advancedsource/a1.example.com" \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-H "Content-Type:application/json"
Response example
Copy Copy success
HTTP/1.1 200 OK
Server: openresty/1.11.2.2
Date: Fri, 24 May 2019 06:32:39 GMT
Content-Type: application/json;charset=utf-8
Content-Length: 488
Connection: keep-alive
App-Name: service_confApi
x-cnc-request-id: e189da67-333d-4795
{
    "origin-ip":"127.0.1.1;127.0.2.1;127.0.4.1;127.0.5.1",
    "default-source-host":"1.1.1.1",
    "src-port":"80",
    "plan-advanced-sources":true,
    "use-advanced-sources":true,
    "use-dynamic-sources":"false",
    "advanced-sources":[
        {
            "advanced-source-strategies":[
                "primary",
                "standby"
            ],
            "areas":[
                "Global",
                "Japan"
            ],
            "adv-ips":[
                {
                    "ip":"127.0.1.1",
                    "priority":"1",
                    "weight":"10",
                    "source-host": "sourcehost1.example.com"
                },
                {
                    "ip":"127.0.2.1",
                    "priority":"2",
                    "weight":"9",
                    "source-host": "sourcehost2.example.com"
                }
            ]
        },
        {
            "advanced-source-strategies":[
                "standby"
            ],
            "areas":[
                "China"
            ],
            "adv-ips":[
                {
                    "ip":"127.0.5.1",
                    "priority":"2",
                    "weight":"9",
                    "source-host": "sourcehost1.example.com"
                },
                {
                    "ip":"127.0.4.1",
                    "priority":"1",
                    "weight":"10",
                    "source-host": "sourcehost2.example.com"
                }
            ]
        }
    ]
}