文档中心 API文档 查询域名的计费区域

查询域名的计费区域

更新时间:2022-10-08 14:43:39

适用产品

全站加速、移动加速、应用安全加速解决方案、应用安全解决方案、政企安全加速解决方案、IPv6安全加速解决方案、IPv6一体化解决方案、区块链安全加速解决方案、下载分发、电商安全加速解决方案、网页加速、金融安全加速解决方案、点播分发

接口描述

查询域名的计费区域

推荐使用 Open API在线调试

Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试

请求参数

Path 参数

参数名称类型必填描述
domain
String需要查询配置的域名或域名id

返回参数

Body 参数

参数名称类型描述
domainId
Integer域名ID
domainName
String域名名称
billingArea
String计费区域

示例

JSON
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/domain/billingarea/mytest.example.com" \
-X "PUT" \
-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
{"code":"0",
"message":"success",
"data":{"domainId":"123456","domainName":"mytest.example.com","billingArea":"cn;apac"}
 
}
本篇文档内容对您是否有帮助?
有帮助
我要反馈
提交成功!非常感谢您的反馈,我们会继续努力做到更好!