CDN加速

文档中心 API文档 域名配置 获取客户APPA域名配置

获取客户APPA域名配置

更新时间:2020-11-16 18:01:16

适用产品:APPA加速

接口描述

获取客户APPA域名配置

返回参数

JSON
XML
参数名称类型描述
codeString查询结果代号,"0"表示成功,其他表示失败
messageString查询结果信息
dataList查询数据
domainNameString域名名称
tcpListeningPortsListTCP监听端口
tcpListeningPortHttpLsListHTTP协议复用TCP监听端口
tcpListeningPortHttpsLsListHTTPS协议复用TCP监听端口
ftpControlPortsListFTP控制端口
ftpDataPortsListFTP数据端口
udpListeningPortsListUDP监听端口
tcpAdvSrcsListTCP高级源的回源域名/源IP

错误码

错误代码(code)描述(message)HTTP状态码语义
26936004The specified customer does not exist.400客户不存在
26938018The accept header specified in your request is not acceptable.400头部不支持

示例

JSON
XML
示例说明
请求示例
复制
#!/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://open.chinanetcenter.com/api/domainlist/appa"  \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-H "Content-Type:application/json"
返回示例
复制
HTTP/1.1 200 OK
Date: Sun, 05 May 2019 09:08:53 GMT
Content-Type: application/json;charset=utf-8
x-cnc-request-id: 83bbebc7-2c95-47d7
{
    "message": "success",
    "code": "0",
    "data": [
        {
            "domainName": "sub.account.domain",
            "tcpListeningPorts": [
                "66",
                "77"
            ],
            "tcpListeningPortHttpLs": [],
            "tcpListeningPortHttpsLs": [
                ""200"",
                ""300""
            ],
            "ftpControlPorts": [
                ""89990""
            ],
            "ftpDataPorts": [
                ""77889""
            ],
            "udpListeningPorts": [],
            "tcpAdvSrcs": [
                "11.12.13.14",
                "15.16.17.18"
            ]
        }
    ]
}