跳转至

海外ACDN origins

GET 获取源列表

GET /prod-api/acdn/originsRest/getOriginsList

请求参数

名称 位置 类型 必选 说明
distributionId query integer 分配ID
searchValue query string 搜索值
pageNum query string 当前页数
pageSize query string 每页显示条目个数
Authorization header string none

返回示例

200 Response

{
  "msg": "操作成功",
  "code": 200,
  "data": {
    "list": [
      {
        "id": "22.com",
        "domainName": "22.com",
        "originPath": "",
        "customHeaders": {
          "quantity": 0,
          "items": []
        },
        "s3OriginConfig": null,
        "customOriginConfig": {
          "originProtocolPolicy": "http-only",
          "originSslProtocols": {
            "quantity": 1,
            "items": [
              "TLSv1.2"
            ]
          },
          "originReadTimeout": 30,
          "originKeepaliveTimeout": 5,
          "httpport": 80,
          "httpsport": 443
        },
        "connectionAttempts": 3,
        "connectionTimeout": 10,
        "originShield": {
          "enabled": false,
          "originShieldRegion": null
        }
      }
    ]
  }
}

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
»» list [object] true none none
»»» id string false none 源名称 none
»»» domainName string false none 源域名 none
»»» originPath string false none 源路径 none
»»» customHeaders object false none 自定义标头 none
»»»» quantity integer true none none
»»»» items [string] true none none
»»» s3OriginConfig null false none none
»»» customOriginConfig object false none none
»»»» originProtocolPolicy string true none none
»»»» originSslProtocols object true none none
»»»»» quantity integer true none none
»»»»» items [string] true none none
»»»» originReadTimeout integer true none none
»»»» originKeepaliveTimeout integer true none none
»»»» httpport integer true none none
»»»» httpsport integer true none none
»»» connectionAttempts integer false none 连接次数 CloudFront 尝试连接到源的次数 – 1 到 3 次。默认值为 3 次。
»»» connectionTimeout integer false none 连接超时 CloudFront 等待源响应的秒数 – 1 到 10 秒。默认值为 10 秒。
»»» originShield object false none none
»»»» enabled boolean true none none
»»»» originShieldRegion null true none none

数据模型