CDN公开API目录

API概览

CDN产品提供以下相关API接口。

域名管理

API 描述
CreateCdn 创建新的加速域名
DescribeCdn 获取加速域名列表
DescribeCdnInfo 获取加速域名的详细信息
ModifyCdn 修改加速域名
EnableCdn 启用加速域名
DisableCdn 禁用加速域名
DeleteCdn 删除加速域名
ModifyProtocol 修改加速域名的协议为 https 协议

证书管理

API 描述
CreateSsl 创建证书
ModifySsl 修改证书
DescribeSsl 获取证书列表
DescribeSslInfo 获取证书的详细信息

刷新预取

API 描述
PrefetchFile 预取文件
ContentRefresh 内容刷新

用量统计

API 描述
FlowStatistics 获取指定域名在指定时间段内的用量信息
DosageAnalysis 获取指定域名今天、昨天、本月以及上个月的流量和带宽
PathMetering 获取指定路径下产生的流量

访问地址

地区 访问地址
中国大陆 api.capitalonline.net

域名管理

CreateCdn

Action: CreateCdn

描述: 创建新的加速域名

请求地址: api.capitalonline.net/cdnapi/distribution

请求方法: POST

请求参数:

参数名 必选 类型 说明
domainname string 加速域名
typeid string 加速类型(web:网页加速,download:下载加速,video:点播加速,dynamic:动态加速)
regionid list 区域(CN:中国大陆,OVS:海外)
protocolid string 协议(http,https)
sslid int 证书id,当protocolid为https时为必填项
origin dict 源站设置
originurl string 回源ip或域名
mastersource string 主源IP或域名,不为空时表示主备方式(与 originurl 同时存在时,优先主备)
slavesource string 备源IP或域名,不为空时表示主备方式(与 originurl 同时存在时,优先主备)
originprotocol string 回源协议(MATCH,HTTP,HTTPS)
originrewrite string 回源重写host
originheader list 回源请求头配置
originport string http 回源协议端口,当originprotocol为HTTP时生效
originporthttps string https 回源协议端口,当originprotocol为HTTPS时生效
testurl string 测试URL地址,用于测试网址的连通性和可用性
testcodes string 需要忽略的测试URL响应码,多个用英文逗号隔开
cacheconfig list 缓存规则设置,最多可添加10条配置
isnevercache int 是否缓存(1:缓存 ,0 :不缓存)
pathpattern string 缓存路径,支持正则
cachetime string 缓存时间,单位秒
cachecontrol int 是否遵循源站 (1:遵循, 0 :不遵循)
filepartstore bool 是否开启大文件切片,如开启则源必须支持range回源

请求示例:

  1. def create_cdn():
  2. """
  3. 创建加速域名
  4. """
  5. cdn_url = "https://api.capitalonline.net/cdnapi/distribution"
  6. action = "CreateCdn"
  7. method = "POST"
  8. param = {}
  9. body = {
  10. "domainname": "openapitest.cdscdntest.com",
  11. "typeid": "web",
  12. "regionid": [
  13. "CN"
  14. ],
  15. "protocolid": "http",
  16. "origin": {
  17. "originurl": "1.1.1.1",
  18. "mastersource": "",
  19. "slavesource": "",
  20. "originprotocol": "HTTP",
  21. "originrewrite": "baidu.com",
  22. "originheader": [
  23. {
  24. "key": "ss",
  25. "value": "ss"
  26. }
  27. ],
  28. "originport": "80"
  29. },
  30. "cacheconfig": [
  31. {
  32. "isnevercache": 1,
  33. "pathpattern": "/.*\.(html|htm|js|css|txt|shtml|xml)",
  34. "cachetime": "3600",
  35. "cachecontrol": 0
  36. }
  37. ],
  38. "filepartstore": False
  39. }
  40. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  41. resp = requests.post(url, json=body)
  42. result = json.loads(resp.content)
  43. result = json.dumps(result) # json格式化
  44. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "formid": 23829,
  6. "speedid": 3174
  7. }
  8. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
formid int 任务 id
speedid int 加速域名id

DescribeCdn

Action: DescribeCdn

描述: 获取加速域名列表

请求地址: api.capitalonline.net/cdnapi/distribution

请求方法: GET

请求参数:

参数名 必选 类型 说明
pageindex string 页索引
pagesize string 每页显示最大记录数
keyword string 加速域名

请求示例:

  1. def get_cdn_list():
  2. """
  3. 获取加速域名列表
  4. """
  5. cdn_url = "https://api.capitalonline.net/cdnapi/distribution"
  6. action = "DescribeCdn"
  7. method = "GET"
  8. param = {
  9. "pageindex": "1",
  10. "pagesize": "10",
  11. "keyword": "openapitest.cdscdntest.com"
  12. }
  13. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  14. resp = requests.get(url)
  15. result = json.loads(resp.content)
  16. result = json.dumps(result) # json格式化
  17. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "rows": [
  6. {
  7. "id": 3174,
  8. "domainname": "openapitest.cdscdntest.com",
  9. "statusid": "01",
  10. "statusname": "启用",
  11. "typeid": "web",
  12. "typename": "网页加速",
  13. "confstatusid": "01",
  14. "confstatusname": "正在配置",
  15. "confstatusmsg": "",
  16. "createtime": "2021-09-26T00:07:57.000Z",
  17. "updatetime": "2021-09-26T00:08:17.000Z",
  18. "bizstatusid": "01",
  19. "bizstatusname": "正常",
  20. "userid": "13900000800",
  21. "username": "",
  22. "customerid": "E020514",
  23. "moduleid": "CDN",
  24. "modulename": "CDN",
  25. "modulecode": "125ee8ab74db11e68a93005056a4567b",
  26. "protocolid": "http",
  27. "protocolname": "HTTP",
  28. "regionname": "中国大陆:883760832745e0a806970c2bcbe2b898.cdscdntest.com"
  29. }
  30. ],
  31. "totalcount": 1,
  32. "pagesize": "10",
  33. "pageindex": 0
  34. }
  35. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
rows list 加速域名列表
id int 加速域名id
domainname string 加速域名
statusid string 启用禁用状态id
statusname string 启用禁用状态名称
typeid string 加速类型id
typename string 加速类型名称
confstatusid string 配置状态id
confstatusname string 配置状态名称
confstatusmsg string 配置状态消息
createtime string 创建时间
updatetime string 更新时间
bizstatusid string 业务状态id
bizstatusname string 业务状态名称
userid string 用户id
username string 用户名称
customerid string 客户id
moduleid string 模块id
modulename string 模块名称
modulecode string 模块编码
protocolid string 协议id
protocolname string 协议名称
regionname string 区域:CNAME
totalcount int 加速域名总条数
pagesize string 每页显示最大记录数
pageindex int 页索引

DescribeCdnInfo

Action: DescribeCdnInfo

描述: 获取加速域名的详细信息

请求地址:api.capitalonline.net/cdnapi/distribution/:domainname

请求方法: GET

请求参数:

请求示例:

  1. def get_cdn_info(domain_name):
  2. """
  3. 获取加速域名的详细信息
  4. :param domain_name: 加速域名
  5. """
  6. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/" + domain_name
  7. action = "DescribeCdnInfo"
  8. method = "GET"
  9. param = {}
  10. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  11. resp = requests.get(url)
  12. result = json.loads(resp.content)
  13. result = json.dumps(result)
  14. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "id": 82431,
  6. "moduleid": "CDN",
  7. "domainname": "openapitest.cdscdntest.com",
  8. "fullcname": "中国大陆:e31c3f808ebb311766ba4a9e981fbfbc.cdscdscdn.com",
  9. "statusid": "01",
  10. "protocolid": "http",
  11. "typeid": "web",
  12. "sslid": 0,
  13. "confstatusid": "02",
  14. "confstatusmsg": "",
  15. "bizstatusid": "01",
  16. "bizstatusmsg": "",
  17. "testurl": "",
  18. "ifdel": 0,
  19. "createtime": "2021-09-28T03:34:13.000Z",
  20. "updatetime": "2021-09-28T03:40:01.000Z",
  21. "testcodes": "",
  22. "filepartstore": 0,
  23. "remark": "",
  24. "regionid": [
  25. "CN"
  26. ],
  27. "origin": {
  28. "originprotocol": "HTTP",
  29. "originrewrite": "baidu.com",
  30. "originheader": "[{\"key\":\"ss\",\"value\":\"ss\"}]",
  31. "originport": "80",
  32. "originporthttps": "",
  33. "mastersource": "",
  34. "slaversource": "",
  35. "originurl": "1.1.1.1"
  36. },
  37. "cacheconfig": [
  38. {
  39. "id": 137547,
  40. "pathpattern": "/.*\\.(html|htm|js|css|txt|shtml|xml)",
  41. "isnevercache": 1,
  42. "cachecontrol": 0,
  43. "cachetime": 3600
  44. }
  45. ],
  46. "ipacl": [
  47. {
  48. "ipperiodtypeid": "Allow",
  49. "iplist": "1.1.1.1",
  50. "period": []
  51. }
  52. ],
  53. "useragent": [
  54. {
  55. "id": 8352,
  56. "pathpattern": "/.*",
  57. "useragent": "IE",
  58. "retstatus": "deny",
  59. "jumplocation": ""
  60. }
  61. ],
  62. "querystringsettings": [
  63. {
  64. "id": 37764,
  65. "pathpattern": "/.*",
  66. "isignorequerystring": 1
  67. }
  68. ],
  69. "resheader": [
  70. {
  71. "id": 8496,
  72. "key": "header1",
  73. "value": "value1"
  74. }
  75. ],
  76. "refereracl": [
  77. {
  78. "id": 5562,
  79. "isopen": 1,
  80. "isallownullreferer": 1,
  81. "whitelist": "1.1.1.1",
  82. "blacklist": "",
  83. "pathpattern": "/.*"
  84. }
  85. ]
  86. }
  87. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
id int 加速域名id
moduleid string 模块id
domainname string 加速域名
fullcname string 区域:CNAME
statusid string 启用禁用状态id(01:启用, 02:禁用)
protocolid string 协议id
typeid string 加速类型id(web:网页加速,download:下载加速,video:点播加速,dynamic:动态加速)
sslid int 证书id
confstatusid string 配置状态id(01:配置中,02:已生效,03:配置失败)
confstatusmsg string 配置状态消息
bizstatusid string 业务状态id(01:正常,02:删除中,04:删除失败,05:余额不足)
bizstatusmsg string 业务状态消息
testurl string 测试URL
ifdel int 域名是否删除(0:否,1:是)
createtime string 创建时间
updatetime string 更新时间
testcodes string 忽略响应码
filepartstore int 是否开启大文件切片(0:否,1:是)
remark string 备注信息
regionid list 区域(CN:中国大陆,OVS:海外)
origin dict 源站配置信息
originprotocol string 回源协议
originrewrite string 回源重写host
originheader string 回源请求头配置
originport string http回源协议端口
originporthttps string https回源协议端口
mastersource string 主源IP或域名
slaversource string 备源IP或域名
originurl string 回源IP或域名
cacheconfig list 缓存规则设置
id int 缓存规则id
pathpattern string 缓存路径
isnevercache int 是否缓存(1:缓存 ,0 :不缓存)
cachecontrol int 是否遵循源站 (1:遵循, 0 :不遵循)
cachetime int 缓存时间,单位秒
ipacl list IP访问控制
ipperiodtypeid string Allow:允许,Deny:拒绝
iplist string 允许或拒绝访问的ip
period list 允许或拒绝访问的ip段
useragent list UA防盗链配置
id int UA防盗链配置id
pathpattern string 路径
useragent string User Agent值
retstatus string deny:拒绝,allow:允许
jumplocation string 跳转链接
querystringsettings list 去问号配置
id int 去问号配置id
pathpattern string 路径
isignorequerystring int 是否开启去问号(1:开启,0:关闭)
resheader list 响应头配置
id int 响应头配置id
key string 响应头参数
value string 参数对应的取值
refereracl list Referer防盗链配置
id int Referer防盗链配置id
isopen int 是否开启(1:是)
isallownullreferer int 是否允许空Referer字段访问CDN资源(1:允许, 0 :不允许)
whitelist string 白名单
blacklist string 黑名单
pathpattern string 路径

ModifyCdn

Action: ModifyCdn

描述: 修改加速域名

请求地址:api.capitalonline.net/cdnapi/distribution/:domainname

请求方法: PUT

请求参数:

参数名 必选 类型 说明
domainname string 加速域名
typeid string 加速类型(web:网页加速,download:下载加速,video:点播加速,dynamic:动态加速)
regionid list 区域(CN:中国大陆,OVS:海外)
protocolid string 协议(http,https)
sslid int 证书id,当protocolid为https时为必填项
origin dict 源站设置
originurl string 回源ip或域名
mastersource string 主源IP或域名,不为空时表示主备方式(与 originurl 同时存在时,优先主备)
slavesource string 备源IP或域名,不为空时表示主备方式(与 originurl 同时存在时,优先主备)
originprotocol string 回源协议(MATCH,HTTP,HTTPS)
originrewrite string 回源重写host
originheader list 回源请求头配置
originport string http 回源协议端口,当originprotocol为HTTP时生效
originporthttps string https 回源协议端口,当originprotocol为HTTPS时生效
testurl string 测试URL地址,用于测试网址的连通性和可用性
testcodes string 需要忽略的测试URL响应码,多个用英文逗号隔开
cacheconfig list 缓存规则设置,最多可添加10条配置
isnevercache int 是否缓存(1:缓存 ,0 :不缓存)
pathpattern string 缓存路径,支持正则
cachetime string 缓存时间,单位秒
cachecontrol int 是否遵循源站 (1:遵循, 0 :不遵循)
filepartstore int 是否开启大文件切片,如开启则源必须支持range回源(1:是,0:否)
querystringsettings list 去问号配置,只能添加1条配置
pathpattern string 路径,值为“/.*”
isignorequerystring int 是否开启去问号(1:开启,0:关闭)
resheader list 响应头配置,最多可添加10条配置
key string 响应头参数
value string 参数对应的取值
ipacl list IP访问控制,只能添加1条配置
ipperiodtypeid string Allow:允许,Deny:拒绝
iplist string 允许或拒绝访问的ip,多个用英文逗号‘,’分隔,iplist和period其中一个必填
period list 允许或拒绝访问的ip段,iplist和period其中一个必填
ipstart string 开始 IP 段
ipend string 结束 IP 段
refereracl list Referer防盗链配置,最多可添加10条配置
isopen int 是否开启,值为1
isallownullreferer int 是否允许空Referer字段访问CDN资源,多条配置时该字段的值要保持一致(1:允许, 0 :不允许)
pathpattern string 路径,值为“/.*”
whitelist string 白名单,whitelist和blacklist其中一个必填
blacklist string 黑名单,whitelist和blacklist其中一个必填
useragent list UA防盗链配置,最多可添加10条配置
pathpattern string 路径,值为“/.*”
useragent string User Agent值
retstatus string deny:拒绝,allow:允许
jumplocation string 跳转链接,当retstatus为allow时不能为空

请求示例:

  1. def modify_cdn(domain_name):
  2. """
  3. 修改加速域名
  4. :param domain_name: 加速域名
  5. """
  6. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/" + domain_name
  7. action = "ModifyCdn"
  8. method = "PUT"
  9. param = {}
  10. body = {
  11. "domainname": "openapitest.cdscdntest.com",
  12. "typeid": "web",
  13. "regionid": [
  14. "CN"
  15. ],
  16. "protocolid": "http",
  17. "origin": {
  18. "originurl": "1.1.1.1",
  19. "mastersource": "",
  20. "slaversource": "",
  21. "originprotocol": "HTTP",
  22. "originrewrite": "baidu.com",
  23. "originheader": [
  24. {
  25. "key": "ss",
  26. "value": "ss"
  27. },
  28. {
  29. "key": "key",
  30. "value": "value"
  31. }
  32. ],
  33. "originport": "80",
  34. "originporthttps": ""
  35. },
  36. "cacheconfig": [
  37. {
  38. "pathpattern": "/.*\.(html|htm|js|css|txt|shtml|xml)",
  39. "isnevercache": 1,
  40. "cachecontrol": 0,
  41. "cachetime": 3600
  42. },
  43. {
  44. "pathpattern": "/.*",
  45. "isnevercache": 1,
  46. "cachecontrol": 1,
  47. "cachetime": 100
  48. }
  49. ],
  50. "filepartstore": 1,
  51. "ipacl": [
  52. {
  53. "ipperiodtypeid": "Allow",
  54. "iplist": "1.1.1.1",
  55. "period": [
  56. {
  57. "ipstart": "1.1.1.1",
  58. "ipend": "2.2.2.2"
  59. }
  60. ]
  61. }
  62. ],
  63. "useragent": [
  64. {
  65. "pathpattern": "/.*",
  66. "useragent": "IE",
  67. "retstatus": "deny",
  68. "jumplocation": ""
  69. },
  70. {
  71. "pathpattern": "/.*",
  72. "useragent": "Google",
  73. "retstatus": "allow",
  74. "jumplocation": "http://www.baidu.com"
  75. }
  76. ],
  77. "querystringsettings": [
  78. {
  79. "pathpattern": "/.*",
  80. "isignorequerystring": 1
  81. }
  82. ],
  83. "resheader": [
  84. {
  85. "key": "header1",
  86. "value": "value1"
  87. },
  88. {
  89. "key": "key",
  90. "value": "value"
  91. }
  92. ],
  93. "refereracl": [
  94. {
  95. "isopen": 1,
  96. "isallownullreferer": 1,
  97. "whitelist": "1.1.1.1",
  98. "blacklist": "",
  99. "pathpattern": "/.*"
  100. },
  101. {
  102. "isopen": 1,
  103. "isallownullreferer": 1,
  104. "whitelist": "2.2.2.2",
  105. "blacklist": "",
  106. "pathpattern": "/.*"
  107. }
  108. ]
  109. }
  110. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  111. resp = requests.put(url, json=body)
  112. result = json.loads(resp.content)
  113. result = json.dumps(result)
  114. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "formid": 534564
  6. }
  7. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
formid int 任务 id

EnableCdn

Action: EnableCdn

描述: 启用加速域名

请求地址:api.capitalonline.net/cdnapi/distribution/:domainname/enable

请求方法: PUT

请求参数:

请求示例:

  1. def enable_cdn(domain_name):
  2. """
  3. 启用加速域名
  4. :param domain_name: 加速域名
  5. """
  6. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/" + domain_name + "/enable"
  7. action = "EnableCdn"
  8. method = "PUT"
  9. param = {}
  10. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  11. resp = requests.put(url)
  12. result = json.loads(resp.content)
  13. result = json.dumps(result)
  14. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "formid": 534591
  6. }
  7. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
formid int 任务 id

DisableCdn

Action: DisableCdn

描述: 禁用加速域名

请求地址: api.capitalonline.net/cdnapi/distribution/:domainname/disable

请求方法: PUT

请求参数:

请求示例:

  1. def disable_cdn(domain_name):
  2. """
  3. 禁用加速域名
  4. :param domain_name: 加速域名
  5. """
  6. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/" + domain_name + "/disable"
  7. action = "DisableCdn"
  8. method = "PUT"
  9. param = {}
  10. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  11. resp = requests.put(url)
  12. result = json.loads(resp.content)
  13. result = json.dumps(result)
  14. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "formid": 534600
  6. }
  7. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
formid int 任务 id

DeleteCdn

Action: DeleteCdn

描述: 删除加速域名

请求地址:api.capitalonline.net/cdnapi/distribution/:domainname

请求方法: DELETE

请求参数:

请求示例:

  1. def delete_cdn(domain_name):
  2. """
  3. 删除加速域名
  4. :param domain_name: 加速域名
  5. """
  6. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/" + domain_name
  7. action = "DeleteCdn"
  8. method = "DELETE"
  9. param = {}
  10. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  11. resp = requests.delete(url)
  12. result = json.loads(resp.content)
  13. result = json.dumps(result)
  14. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "formid": 534645
  6. }
  7. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
formid int 任务 id

ModifyProtocol

Action: ModifyProtocol

描述: 修改加速域名的协议为https协议

请求地址:api.capitalonline.net/cdnapi/distribution/https/:domainname/:sslid

请求方法: PUT

请求参数:

请求示例:

  1. def modify_protocol(domain_name, ssl_id):
  2. """
  3. 修改加速域名的协议为https协议
  4. :param domain_name: 加速域名
  5. :param ssl_id: 证书id
  6. """
  7. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/https/" + domain_name + "/" + ssl_id
  8. action = "ModifyProtocol"
  9. method = "PUT"
  10. param = {}
  11. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  12. resp = requests.put(url)
  13. result = json.loads(resp.content)
  14. result = json.dumps(result)
  15. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "formid": 534636
  6. }
  7. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
formid int 任务 id

证书管理

CreateSsl

Action: CreateSsl

描述: 创建证书

请求地址: api.capitalonline.net/cdnapi/ssl

请求方法: POST

请求参数:

参数名 必选 类型 说明
name string 证书名称
publickey string 公钥
privatekey string 私钥

请求示例:

  1. def create_ssl():
  2. """
  3. 创建证书
  4. """
  5. cdn_url = "https://api.capitalonline.net/cdnapi/ssl"
  6. action = "CreateSsl"
  7. method = "POST"
  8. param = {}
  9. body = {
  10. "name": "create-test",
  11. "publickey": "*******",
  12. "privatekey": "*******"
  13. }
  14. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  15. resp = requests.post(url, json=body)
  16. result = json.loads(resp.content)
  17. result = json.dumps(result)
  18. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "id": 11142
  6. }
  7. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
id int 证书id

ModifySsl

Action: ModifySsl

描述: 修改证书

请求地址:api.capitalonline.net/cdnapi/ssl/:id

请求方法: PUT

请求参数:

参数名 必选 类型 说明
name string 证书名称
publickey string 公钥
privatekey string 私钥

请求示例:

  1. def modify_ssl(ssl_id):
  2. """
  3. 修改证书
  4. :param ssl_id: 证书id
  5. """
  6. cdn_url = "https://api.capitalonline.net/cdnapi/ssl/" + ssl_id
  7. action = "ModifySsl"
  8. method = "PUT"
  9. param = {}
  10. body = {
  11. "name": "create-test",
  12. "publickey": "*******",
  13. "privatekey": "*******"
  14. }
  15. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  16. resp = requests.put(url, json=body)
  17. result = json.loads(resp.content)
  18. result = json.dumps(result)
  19. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {}
  5. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息

DescribeSsl

Action: DescribeSsl

描述: 获取证书列表

请求地址:api.capitalonline.net/cdnapi/ssl

请求方法: GET

请求参数:

参数名 必选 类型 说明
pageindex string 页索引
pagesize string 每页显示最大记录数

请求示例:

  1. def get_ssl_list():
  2. """
  3. 获取证书列表
  4. """
  5. cdn_url = "https://api.capitalonline.net/cdnapi/ssl"
  6. action = "DescribeSsl"
  7. method = "GET"
  8. param = {
  9. "pageindex": "1",
  10. "pagesize": "10"
  11. }
  12. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  13. resp = requests.get(url)
  14. result = json.loads(resp.content)
  15. result = json.dumps(result)
  16. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "rows": [
  6. {
  7. "id": 11142,
  8. "name": "create-test",
  9. "moduleid": "CDN",
  10. "modulename": "CDN",
  11. "createtime": "2021-09-28T10:36:53.000Z",
  12. "updatetime": "2021-09-28T10:49:04.000Z",
  13. "authname": "cmyalidt.cdscdntest.com",
  14. "bindname": "",
  15. "billstatus": 0,
  16. "endtime": "2022-08-06T06:33:34.000Z",
  17. "ifdel": 0,
  18. "customerid": "E020514",
  19. "userid": "13900000800",
  20. "username": "",
  21. "statusid": "01",
  22. "statusname": "未使用"
  23. }
  24. ],
  25. "totalcount": 1,
  26. "pagesize": "10"
  27. }
  28. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
rows list 证书列表
id int 证书id
name string 证书名称
moduleid string 模块id
modulename string 模块名称
createtime string 创建时间
updatetime string 更新时间
authname string 证书授权的域名
bindname string 已经绑定的域名
billstatus int 是否计费(0:未计费,1:已计费)
endtime string 证书到期时间
ifdel int 证书是否删除(0:否,1:是)
customerid string 客户id
userid string 用户id
username string 用户名称
statusid string 证书状态id
statusname string 证书状态名称
totalcount int 证书总条数
pagesize string 每页显示最大记录数

DescribeSslInfo

Action: DescribeSslInfo

描述: 获取证书的详细信息

请求地址:api.capitalonline.net/cdnapi/ssl/:id

请求方法: GET

请求参数:

请求示例:

  1. def get_ssl_info(ssl_id):
  2. """
  3. 获取证书的详细信息
  4. :param ssl_id: 证书id
  5. """
  6. cdn_url = "https://api.capitalonline.net/cdnapi/ssl/" + ssl_id
  7. action = "DescribeSslInfo"
  8. method = "GET"
  9. param = {}
  10. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  11. resp = requests.get(url)
  12. result = json.loads(resp.content)
  13. result = json.dumps(result)
  14. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "rows": {
  6. "id": 11142,
  7. "moduleid": "CDN",
  8. "name": "create-test",
  9. "publickey": "*******",
  10. "privatekey": "*******",
  11. "statusid": "01",
  12. "statusname": "未使用",
  13. "createtime": "2021-09-28T10:36:53.000Z",
  14. "updatetime": "2021-09-28T10:49:04.000Z",
  15. "authname": "cmyalidt.cdscdntest.com",
  16. "bindname": "",
  17. "billstatus": 0,
  18. "endtime": "2022-08-06T06:33:34.000Z",
  19. "ifdel": 0,
  20. "customerid": "E020514",
  21. "userid": "13900000800",
  22. "username": ""
  23. }
  24. }
  25. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
rows dict 证书信息
id int 证书id
moduleid string 模块id
name string 证书名称
publickey string 公钥
privatekey string 私钥
statusid string 证书状态id
statusname string 证书状态名称
createtime string 创建时间
updatetime string 更新时间
authname string 证书授权的域名
bindname string 已经绑定的域名
billstatus int 是否计费(0:未计费,1:已计费)
endtime string 证书到期时间
ifdel int 证书是否删除(0:否,1:是)
customerid string 客户id
userid string 用户id
username string 用户名称

刷新预取

PrefetchFile

预取是主动获取源站新文件至二级缓存服务器,适用于文件发布、更新,降低文件链接放出时可能对源站产生的大量请求和带宽压力。

注意:预取文件的时候将有回源操作,会占用源站带宽。

Action: PrefetchFile

描述: 预取文件

请求地址:api.capitalonline.net/cdnapi/distribution/v4/prefetch

请求方法: POST

请求参数:

参数名 必选 类型 说明
url string 预取文件url ,多条以’\n’分隔

填写说明:

1、请输入完整路径,如 http://www.test.com/images/logo.jpg;支持正则表达式,如 http://www.test.com/images/*.jpg。

2、请注意区分 url 中的字母的大小写,错误的大小写会导致预取无效。

3、一次最多提交 99 条 url,以’\n’分隔。

4、文件大的时候,预取有可能占用大量带宽,建议在不影响业务的时候进行预取。

请求示例:

  1. def prefetch_file():
  2. """
  3. 预取文件
  4. """
  5. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/v4/prefetch"
  6. action = "PrefetchFile"
  7. method = "POST"
  8. param = {}
  9. body = {
  10. "url": "http://www.test.com/images/a.txt\nhttp://www.test.com/images/test.png"
  11. }
  12. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  13. resp = requests.post(url, json=body)
  14. result = json.loads(resp.content)
  15. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": true
  5. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data bool 数据信息

ContentRefresh

内容刷新功能可从各加速节点上清除指定的目录或者文件缓存,使得用户请求重新回源获取,当您希望用户及时看到最新版本的文件可以采用此手动缓存刷新方式。

Action: ContentRefresh

描述: 内容刷新

请求地址:api.capitalonline.net/cdnapi/distribution/v4/cache

请求方法: POST

请求参数:

参数名 必选 类型 说明
url string 刷新url ,多条以’\n’分隔

填写说明:

1、当前目录为根目录(/),如要刷新目录,请以正斜杠 / 结尾,如 http://www.test.com/images/ ;如要刷新文件,请输入完整路径,如 http://www.test.com/images/logo.jpg;支持正则表达式,如 http://www.test.com/images/*.jpg。

2、请注意区分 url 中的字母的大小写,错误的大小写会导致刷新无效。

3、刷新目录时如果目录有上下级层次关系,本功能会自动同时推送下级子目录,不需要填写下级子目录。

4、一次最多提交 99 条 url,以’\n’分隔。

请求示例:

  1. def content_refresh():
  2. """
  3. 内容刷新
  4. """
  5. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/v4/cache"
  6. action = "ContentRefresh"
  7. method = "POST"
  8. param = {}
  9. body = {
  10. "url": "http://www.test.com/images/\nhttp://www.test.com/images/test.png"
  11. }
  12. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  13. resp = requests.post(url, json=body)
  14. result = json.loads(resp.content)
  15. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": true
  5. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data bool 数据信息

用量统计

FlowStatistics

Action: FlowStatistics

描述: 获取指定域名在指定时间段内的用量信息

请求地址:api.capitalonline.net/cdnapi/distribution/flow

请求方法: POST

请求参数:

参数名 必选 类型 说明
domainname list 域名列表
begindate string 开始日期
enddate string 结束日期
spacingtype string 时间周期(01:5分钟,03:天,04:月)
peaktypeid string 类型(01:流量,02:带宽)

请求示例:

  1. def flow_statistics():
  2. """
  3. 获取指定域名在指定时间段内的用量信息
  4. """
  5. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/flow"
  6. action = "FlowStatistics"
  7. method = "POST"
  8. param = {}
  9. body = {
  10. "domainname": ["openapitest.cdscdntest.com", "test.cdscdntest.com"],
  11. "begindate": "2021-09-29",
  12. "enddate": "2021-09-30",
  13. "spacingtype": "01",
  14. "peaktypeid": "01"
  15. }
  16. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  17. resp = requests.post(url, json=body)
  18. result = json.loads(resp.content)
  19. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": [
  5. {
  6. "counttime": "2021-09-29 10:40:00",
  7. "regionid": "OVS",
  8. "typeid": "web",
  9. "protocolid": "http",
  10. "value": 0.00001
  11. },
  12. {
  13. "counttime": "2021-09-29 10:40:00",
  14. "regionid": "CN",
  15. "typeid": "web",
  16. "protocolid": "http",
  17. "value": 0.000001
  18. },
  19. {
  20. "counttime": "2021-09-29 10:45:00",
  21. "regionid": "OVS",
  22. "typeid": "web",
  23. "protocolid": "http",
  24. "value": 0.00008
  25. }
  26. ]
  27. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data list 数据信息
counttime string 时间
regionid string 区域(CN:中国大陆,OVS:海外)
typeid string 加速类型(web:网页加速,download:下载加速,video:点播加速)
protocolid string 协议(http,https)
value float 数据,peaktypeid为01时,value为流量,单位是GB;peaktypeid为02时,value为带宽,单位是Mb

DosageAnalysis

Action: DosageAnalysis

描述: 获取指定域名今天、昨天、本月以及上个月的流量(单位:GB)和带宽(单位:Mb)

请求地址:api.capitalonline.net/cdnapi/distribution/usageinfo

请求方法: POST

请求参数:

参数名 必选 类型 说明
domains list 域名列表

请求示例:

  1. def dosage_analysis():
  2. """
  3. 获取指定域名今天、昨天、本月以及上个月的流量和带宽
  4. """
  5. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/usageinfo"
  6. action = "DosageAnalysis"
  7. method = "POST"
  8. param = {}
  9. body = {
  10. "domains": ["openapitest.cdscdntest.com", "test.cdscdntest.com"]
  11. }
  12. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  13. resp = requests.post(url, json=body)
  14. result = json.loads(resp.content)
  15. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": {
  5. "peak": {
  6. "type": "top_bandwidth",
  7. "current_month": 7.292106,
  8. "last_month": 131.640734,
  9. "today": 0.00216,
  10. "yesterday": 6.760003
  11. },
  12. "flow": {
  13. "type": "total_flow",
  14. "current_month": 0.306807789,
  15. "last_month": 32.707811785,
  16. "today": 0.000091001,
  17. "yesterday": 0.280902674
  18. }
  19. }
  20. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data dict 数据信息
peak dict 带宽信息
type string 类型(top_bandwidth:带宽峰值)
current_month float 本月带宽峰值,单位是Mb
last_month float 上月带宽峰值,单位是Mb
today float 今日带宽峰值,单位是Mb
yesterday float 昨日带宽峰值,单位是Mb
flow dict 流量信息
type string 类型(total_flow:总流量)
current_month float 本月总流量,单位是GB
last_month float 上月总流量,单位是GB
today float 今日总流量,单位是GB
yesterday float 昨日总流量,单位是GB

PathMetering

Action: PathMetering

描述: 获取指定路径下产生的流量

请求地址:api.capitalonline.net/cdnapi/distribution/pathflow

请求方法: POST

请求参数:

参数名 必选 类型 说明
path string 路径
begindate string 开始时间
enddate string 结束时间
interval string 时间周期(minute:5分钟,hour:小时,day:天)
domainname string 查询的域名,默认该用户下所有的域名
is_convert bool 是否转换成 GB,默认false

请求示例:

  1. def path_metering():
  2. """
  3. 获取指定路径下产生的流量
  4. """
  5. cdn_url = "https://api.capitalonline.net/cdnapi/distribution/pathflow"
  6. action = "PathMetering"
  7. method = "POST"
  8. param = {}
  9. body = {
  10. "path": "/test/",
  11. "begindate": "2021-09-29 00:00:00",
  12. "enddate": "2021-09-29 23:59:59",
  13. "interval": "minute"
  14. }
  15. url = get_signature(action, AK, AccessKeySecret, method, cdn_url, param)
  16. resp = requests.post(url, json=body)
  17. result = json.loads(resp.content)
  18. print(result)

返回示例:

  1. {
  2. "code": 200,
  3. "msg": "成功",
  4. "data": [
  5. {
  6. "counttime": "2021-09-29 15:50:00",
  7. "domainname": "test.cdscdntest.com",
  8. "flow": 523600
  9. },
  10. {
  11. "counttime": "2021-09-29 15:55:00",
  12. "domainname": "test.cdscdntest.com",
  13. "flow": 7502467.5
  14. }
  15. ]
  16. }

返回参数说明:

参数名 类型 说明
code int 状态码
msg string 信息描述
data list 数据信息
counttime string 流量产生的时间
domainname string 加速域名
flow float 流量,单位是Byte

错误码

HttpCode 错误码 描述
412 41200001 请求失败,参数缺少必须项:%s
404 40400001 请求资源不存在
401 40100001 请求失败,未授权
500 50000001 服务器内容错误
412 41200002 日期格式不正确:%s
412 41200003 开始日期不能大于结束日期
412 41200004 未知的取值范围:%s
412 412A2001 NotUse 只能是 True 或 False
412 412A2002 Aliases 中有不合法域名
412 412A2003 TestUrls 格式不符合规则
412 412A2004 TestCodes 值只能是数字
412 412A2005 OriginSource 只能是一个域名或者多个 ip(逗号隔开)
412 412A2006 OriginSource 动态回源域名解析不到 A 记录
412 412A2007 OriginRewrite 不是域名
501 501A2008 OriginHeader 必须是键值对
412 412A2009 BackToSourceType 只能为 RoundRobin 或者 Backup
412 412A2010 CarrierCode 值必须为 TEL\ CNC\ MOB\ EDU\ TIE\ ANY
412 412A2011 CarrierCode 有重复值
412 412A2019 路径模式格式不符合规则!不支持中文符号和特殊字符<> ‘ “
412 412A2012 MasterIps 中不是 ip
412 412A2013 MasterIps 中有重复 ip
412 412A2014 SlaverIps 中不是 ip
412 412A2015 SlaverIps 中有重复 ip
412 412A2016 MasterIps 和 SlaverIps 中有重复的 ip
412 412A2017 OriginSourceEx 中不是 ip
412 412A2018 回源域名不能与加速域名相同
412 412A2020 IgnoreQueryString 只能是 True 或者 False
412 412A2021 点播配置中只可以有两个 Item 标签
412 412A2022 VideoType 必须为 mp4 或 flv
412 412A2023 VideoType 内容不可重复
412 412A2024 DragType 必须为 time 或 size
412 412A2025 NeverCache 只能是 True 或者 False
412 412A2026 CacheControl 只能是 NotIgnore 或者 Ignore
412 412A2027 CacheTime 填写不正确
412 412A2028 CacheTime 单位不正确
412 412A2029 WhiteList 不能超过 1900 个域名
412 412A2030 BlackList 不能超过 1900 个域名
412 412A2031 whiteList 中有不合法域名
412 412A2032 BlackList 中有不合法域名
412 412A2033 WhiteList 和 BlackList 不能同时有值
412 412A2034 DenyIpStart 中不是 ip
412 412A2035 DenyIpEnd 中不是 ip
412 412A2036 AllowIpStart 中不是 ip
412 412A2037 AllowIpEnd 中不是 ip
412 412A2038 起始 ip 不能大于等于结束 ip
412 412A2039 DenyIpList 中不是 ip
412 412A2040 AllowIpList 中不是 ip
412 412A2041 禁用(启用)ip 和 referer 防盗链不能同时存在
412 412A2042 禁用 ip 和启用 ip 不能同时存在
412 412A2043 WhiteList 和 BlackList 至少存在一个
412 412A2044 RetStatus 只能为 403 或者 302
412 412A2045 JumpLocation url 格式不符合规则
412 412A2046 IsOpen 只能是 True 或 False
412 412A2047 至少有一个 key 存在时才能开启
412 412A2048 AclGeneralTimeStamp/Key 不能超过 256 个字符
412 412A2049 AclGeneralTimeStamp/Key 只能是数字或者字母
412 412A2050 AclGeneralTimeStamp/TimeStamp 只能是数字
412 412A2051 平台类型不匹配
412 412A2052 加速类型 Platform/Type 不能更改
412 412A2053 AllowNullReferer 只能是 True 或者 False
412 412A2054 OriginProtocol 只能是 http 或者 https
412 412A2055 OriginProtocolHttps 只能是 http 或者 https
412 412A2056 StartOffset 和 StartTime 至少存在一个
412 412A2057 StartOffset 值只能为数字
412 412A2058 StartTime 值只能为数字
412 412A2059 LimitSpeedRate 只能为数字
412 412A2060 Duration 填写不正确
412 412A2061 PartStore 填写不正确
412 412A2062 TimeRange 值只能为数字
412 412A2063 QueryMax 值只能为数字
412 412A2064 ForbidTime 值只能为数字
412 412A2065 主回源域名不合法
412 412A2066 备回源域名不合法
412 412A2067 域名已存在于我们系统
412 412A2068 域名重复
412 412A2069 加速已经启用(禁用)不能重复操作
412 412A2070 加速类型不允许修改
412 412A2071 参数不合法
412 412A2072 域名不存在或不属于当前客户
412 412A2073 域名不属于云平台
412 412A2074 未找到该域名的日志文件
412 412A2075 指定的 ssl 不存在
412 412A2076 私钥和证书不匹配
412 412A2077 请求消息体不能为空
412 412A2078 XML 格式不符合规则
412 412A2079 JSON 格式不符合规则
412 412A2080 域名没有备案
412 412A2081 创建的 distribution 数量已经达到上限
412 412A2082 日期格式不符合规则
500 500A0001 拒绝访问
500 500A0002 请求的签名经过计算跟你提供的签名不匹配,请检查你的通行密钥和签名方法
500 500A0003 指定的验证码无效
500 500A0004 超过每天备案调用次数
500 500A0005 有域名关联该证书不能删除
500 500A0006 请求过于频繁,请一分钟之后再试
500 500A0007 单次推送 url 不能超过 100 条
500 500A0008 xml 转字符串出错
500 500A0009 数据库操作失败
500 500A0010 数据库查询失败
500 500A0011 程序出错
500 500A0012 指定的 distribution 不存在
500 500A0013 指定的 distribution 已经或者正在删除
500 500A0014 插入数据库失败
412 412A2083 解析不到 Customer/Id
412 412A2084 解析不到 Platform/Type
412 412A2085 解析不到 NotUse
412 412A2086 解析不到 Domain
412 412A2087 解析不到 Aliases
412 412A2088 解析不到 Origin
412 412A2089 解析不到 OriginSource
412 412A2090 解析不到 BackToSourceType
412 412A2091 解析不到 Item
412 412A2092 解析不到 CarrierCode
412 412A2093 解析不到 MasterIps
412 412A2094 解析不到 SlaverIps
412 412A2095 解析不到 OriginSourceEx
412 412A2096 解析不到QueryStringSettingsTop/QueryStringSetting/PathPattern
412 412A2097 解析不到 IgnoreQueryString
412 412A2098 解析不到 VideoType
412 412A2099 解析不到 NeverCache
412 412A2100 解析不到 CacheControl
412 412A2101 解析不到 CacheTime
412 412A2102 解析不到 AclUserAgent/UserAgent
412 412A2103 解析不到 AclUserAgent/JumpLocation
412 412A2104 解析不到 AclTimeStamp/IsOpen
412 412A2105 解析不到 AclGeneralTimeStamp/Key
412 412A2106 解析不到 AclGeneralTimeStamp/TimeStamp
412 412A2107 解析不到 Logging/Analytics
412 412A2108 解析不到 Logging/Format
412 412A2109 解析不到 Logging/SplitTime
412 412A2110 AdvanceConfig 和 OriginSource 至少存在一个
412 412A2111 解析不到CacheBehaviorTop/CacheBehaviors/CacheBehavior/PathPattern
412 412A2112 解析不到 DenyIpStart
412 412A2113 解析不到 DenyIpEnd
412 412A2114 解析不到 AllowIpStart
412 412A2115 解析不到 AllowIpEnd
412 412A2116 解析不到 AclBehaviors/AclBehavior/PathPattern
412 412A2117 解析不到 Logging
412 412A2118 解析不到 DistributionConfig
412 412A2119 解析不到 SSLId
412 412A2120 解析不到 LimitSpeedRate
412 412A2121 解析不到 TimeRange
412 412A2122 解析不到 QueryMax
412 412A2123 解析不到 ForbidTime
401 40100002 请求的签名经过计算跟你提供的签名不匹配,请检查你的通行密钥和签名方法
412 412A2124 提供的 xml 与上次的相同
401 40100003 Token 已过期,请重新登陆
412 41200008 余额不足,不能进行此操作
500 50000002 数据库操作失败
500 50000003 数据库查询失败
500 50000004 检索数据异常
412 41200009 您没有任何加速域名信息可查询
500 50000005 缺少必须的参数项,请联系管理员进行配置
500 50000006 订单不存在,不能进行修改操作
500 50000007 订单已存在,请勿重复提交
500 50000008 请勿重复选择提交计费方案
500 50000009 创建订单失败
500 50000010 不是一个有效的日期
500 50000011 订单已存在,请先进行撤销操作
500 50000012 用户名已存在
500 50000013 id不正确,用户信息不存在
500 50000014 captcha不存在,请生成验证码
500 50000015 验证码不正确,请重新输入
500 50000016 未知的tokenid
500 50000017 用户名或者密码不正确
500 50000018 获取用户信息错误
500 50000020 未知的返回结果
500 500A0015 域名不合法或域名不属于当前请求用户!
500 50000021 code已存在,不能进行此操作
500 50000022 id不存在,不能进行此操作
500 50000023 未知的parentid
412 41200010 请求的数据不是一个数组
500 50000024 未知的sslid
500 50000025 错误的DistributionConfig结构
500 50000026 未知的cname
500 50000027 该域名已存在,请勿重复创建
500 50000028 goodsid不存在,请联系管理员检查OP配置
412 41200011 非员工用户不能登录该OP系统
500 50000029 加速域名不匹配,请检查加速域名与CName是否一致
500 50000030 已删除的加速域名不能进行该操作
500 50000031 正在执行删除的加速域名不能进行该操作
500 50000032 已禁用的加速域名不能进行该操作
500 50000033 该加速域名不允许在本系统中修改
500 50000034 已启用的加速域名不能进行该操作
412 41200012 publickey长度必须少于10000
412 41200013 privatekey长度必须少于10000
412 41200014 sslid证书已被禁用不能进行该操作
500 50000035 资源已存在
500 50000036 资源不存在
412 41200015 url的条数不能大于:%s
412 41200016 url的长度不能大于:%s
412 41200017 加速域名最多只允许创建15个
412 41200018 客户ID不存在
500 50000037 bs对象type取值范围无效[RoundRobin,Backup]
500 50000038 未知的rftype
412 41200019 该路径已存在
412 41200020 未匹配到删除的项
412 41200021 请求失败,参数缺少必须项:ips
412 41200022 请求失败,参数缺少必须项:mips
412 41200023 请求失败,参数缺少必须项:sips
500 50000039 当前url地址不是您创建的加速域名