Dynamic Web Acceleration,Media Acceleration VoD,Media Acceleration Live Broadcast,Content Acceleration
Query the customer advanced source configuration through the interface
Single user trigger frequency: 300/5min
| Error code(code) | Description(message) | HTTP status | Semantic |
|---|---|---|---|
| NoSuchOperator | The specified operator does not exist. | 404 | The specified operator does not exist. |
| NoSuchCustomer | The specified customer name does not exist. | 404 | The specified customer name does not exist. |
| NoSuchCustomer | The specified customer id does not exist. | 404 | The specified customer id does not exist. |
| NoSuchRequestID | The specified request id does not exist. | 404 | The specified request id does not exist. |
| DuplicatedRequestID | The specified request id already exist. | 400 | The specified request id already exist. |
| NoSpecifiedDomain | You must specified domain. | 400 | You must specified domain. |
| NoSuchDomain | The specified domain does not exist. | 404 | The specified domain does not exist. |
| DomainNotRestored | The domain you are trying to cancel has not been restored. | 409 | The domain you are trying to cancel has not been restored. |
#!/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"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"
}
]
}
]
}