海外ACDN 分发配置¶
GET 获取地区限制¶
GET /prod-api/acdn/cloudfrontRest/getRegionalRestrictions/{distributionId}
请求参数¶
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| distributionId | path | integer | 是 | distributionId |
| Authorization | header | string | 是 | none |
返回示例
200 Response
{
"msg": "操作成功",
"code": 200,
"data": {
"restrictionType": "whitelist",
"quantity": 1,
"items": [
"AE"
]
}
}
401 Response
返回结果¶
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 401 | Unauthorized | none | Inline |
| 403 | Forbidden | none | Inline |
| 404 | Not Found | none | Inline |
返回数据结构¶
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » msg | string | true | none | none | |
| » code | integer | true | none | none | |
| » data | object | true | none | none | |
| »» restrictionType | string | true | none | 类型 | blacklist:黑名单 whitelist:白名单 none:无 |
| »» quantity | integer | true | none | none | |
| »» items | [string] | true | none | 国家/地区 | none |