CreateOriginPool_边缘安全加速_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

源地址下可以添加多个源站,支持域名、IP、OSS、S3 等类型的源站,支持 OSS 和 S3 类型源站的回源鉴权。

流控信息

当前云产品API请求速率暂未透出。

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
Namestring

源地址池名称,一个站点下源地址池名称唯一。

示例值:pool1
Enabledboolean

源地址池是否启用:展开详情

示例值:true
Originsarray<object>

源地址池里添加的源站信息,多个源站使用数组传值。

SiteIdinteger<int64>

站点 ID,可通过调用 ListSites 接口获取。

注意 该字段类型为 Long,在序列化/反序列化的过程中可能导致精度丢失,请注意数值不得大于 9007199254740991。
示例值:21655860979****参考取值来源:
    ListSites
    CreateSite

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:CB1A380B-09F0-41BB-A198-72F8FD6DA2FE
Idinteger<int64>

新增的源地址池 ID。

注意 请注意,该值为 Long 类型,在某些语言中可能存在精度丢失的风险,请小心使用。
示例值:103852052519****

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidParameter
The specified parameter is invalid.诊断
400
SourceNumberExceedLimit
The number of sources in the origin pool exceeds the quota limit.诊断
400
PoolNumberExceedQuotaLimit
The number of origin pool you have added has reached the upper limit of the plan quota. Please delete the origin pool that is no longer in use or upgrade the plan and try again.诊断
400
InternalException
Failed to call the service. Try again later or contact technical support.诊断
400
InvalidParameter.AddressConflict
Duplicate origin addresses. Make sure that each origin address for the same pool is unique.诊断
400
OriginPoolNameConflict
The specified origin pool name already exists or its hostname conflicts with a load balancer name. Try again with a unique name.诊断
400
SourceAddressInvalid
Invalid origin address. Check whether the IP address or domain name is in the valid format.诊断
400
SourceCircleExist
The host record of the resource to be operated on is already the source station of another resource, or the source station of the current resource has been added as a host record. To avoid loopback, modify the host record or source station and retry.诊断
404
SiteNotFound
The website does not exist or does not belong to you.诊断

变更历史

变更时间变更内容概要操作
2024-12-27
新增OpenAPI,创建源地址池

相关示例