跳转至

海外ACDN 分发配置

POST 修改地区限制

POST /prod-api/acdn/cloudfrontRest/updateRegionalRestrictions

Body 请求参数

{
  "restrictionType": "none",
  "regionals": [],
  "distributionId": 38
}

请求参数

名称 位置 类型 必选 中文名 说明
Authorization header string none
body body UpdateRegionalRestrictionsVo UpdateRegionalRestrictionsVo none

返回示例

200 Response

{
  "msg": "更新成功",
  "code": 200
}

201 Response

{}

返回结果

状态码 状态码含义 说明 数据模型
200 OK none Inline
201 Created 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

数据模型

UpdateRegionalRestrictionsVo

{
  "distributionId": 0,
  "regionals": [
    "string"
  ],
  "restrictionType": "string"
}

UpdateRegionalRestrictionsVo

属性

名称 类型 必选 约束 中文名 说明
distributionId integer(int64) true none 分配ID none
regionals [string] true none 国家/地区 none
restrictionType string true none 限制类型 none