全站加速、移动加速、应用安全加速解决方案、应用安全解决方案、政企安全加速解决方案、IPv6安全加速解决方案、IPv6一体化解决方案、区块链安全加速解决方案、下载分发、电商安全加速解决方案、网页加速、金融安全加速解决方案、点播分发
查询域名的计费区域
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
domain | String | 是 | 需要查询配置的域名或域名id |
参数名称 | 类型 | 描述 |
---|---|---|
domainId | Integer | 域名ID |
domainName | String | 域名名称 |
billingArea | String | 计费区域 |
#!/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"} }