/v2/buckets/cdn/source/
获取单个空间 CDN 回源配置信息(该接口不对 CDN 类型做限制)
请求地址
/v2/buckets/cdn/source/
请求方法
GET
请求是否需要登录授权
是,关于登录授权,参见授权机制
请求参数
必选 | 数据类型及范围 | 说明 | |
---|---|---|---|
bucket_name | true | string | 空间名 |
返回结果
{
"result": true,
"data":{
"bucket_name": "bucket",
"domain": "http:www.example.com",
"source_type": "https",
"domain_follow": "enable",
"cdn": {
"ctn": {
"servers": [
{ "host": "122.255.10.11", "port": 80, "weight": 2, "max_fails": 3, "fail_timeout": 30 },
{ "host": "122.255.10.12", "port": 81, "weight": 2, "max_fails": 3, "fail_timeout": 30 },
{ "host": "122.255.10.13", "port": 80, "weight": 5, "max_fails": 3, "fail_timeout": 30 },
{ "host": "122.255.10.14", "port": 81, "weight": 1, "max_fails": 3, "fail_timeout": 30, "backup": true },
{ "host": "122.255.10.15", "port": 80, "weight": 1, "max_fails": 3, "fail_timeout": 30, "backup": true }
]
},
"cun": {
"servers": [
{ "host": "182.102.1.12", "port": 8080, "weight": 1, "max_fails": 3, "fail_timeout": 30 }
]
},
"cmn": {
"servers": [
{ "host": "182.102.1.13", "port": 8081, "weight": 1, "max_fails": 3, "fail_timeout": 30 }
]
},
"bgp": {
"servers": [
{ "host": "182.102.1.13", "port": 8081, "weight": 1, "max_fails": 3, "fail_timeout": 30 }
]
},
"others": {
"servers": [
{ "host": "182.102.1.13", "port": 8081, "weight": 1, "max_fails": 3, "fail_timeout": 30 }
]
}
}
}
}
Last edited by hubiao, 2015-09-28 10:46:18