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

获取客户APPA域名配置

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

适用产品

应用加速

接口描述

获取客户APPA域名配置

返回参数

Body 参数

JSON
XML
JSON
参数名称类型描述
code
String查询结果代号,"0"表示成功,其他表示失败
message
String查询结果信息
data
List查询数据
domainName
String域名名称
tcpListeningPorts
ListTCP监听端口
tcpListeningPortHttpLs
ListHTTP协议复用TCP监听端口
tcpListeningPortHttpsLs
ListHTTPS协议复用TCP监听端口
ftpControlPorts
ListFTP控制端口
ftpDataPorts
ListFTP数据端口
udpListeningPorts
ListUDP监听端口
tcpAdvSrcs
ListTCP高级源的回源域名/源IP

错误码

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

示例

JSON
XML
JSON
请求示例
复制代码 复制成功
#!/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"
            ]
        }
    ]
}
本篇文档内容对您是否有帮助?
有帮助
没帮助
提交成功!非常感谢您的反馈,我们会继续努力做到更好!