All Products
Search
Document Center

Edge Security Acceleration:CreateOriginPool

Last Updated:Nov 07, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Add a new origin address pool

Operation description

Multiple origins can be added under the origin address, supporting domain names, IPs, OSS, S3, and other types of origins. It supports authentication for OSS and S3 type origins.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
esa:CreateOriginPoolcreate
*Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringYes

The name of the origin address pool, which must be unique within a site.

pool1
EnabledbooleanNo

Whether the origin address pool is enabled:

  • true: Enabled;
  • false: Disabled.
true
Originsarray<object>No

Information about the origins added to the origin address pool, with multiple origins passed as an array.

objectNo

Information about a single origin.

NamestringNo

The name of the origin, which must be unique within an origin address.

origin1
AddressstringNo

The address of the origin, e.g., www.example.com.

www.example.com
EnabledbooleanNo

Whether the origin is enabled:

  • true: Enabled;
  • false: Disabled.
true
HeaderanyNo

The request header to be included when fetching from the origin, only Host is supported.

{ "Host": [ "example.com" ] }
WeightintegerNo

The weight, an integer between 0 and 100.

50
TypestringNo

The type of the origin:

  • ip_domain: IP or domain name type origin;
  • OSS: OSS address origin;
  • S3: AWS S3 origin.
ip_domain
AuthConfobjectNo

Authentication information, required when the origin is OSS or S3 and needs authentication, including related configuration details.

AuthTypestringNo

The type of authentication.

  • public: Public read/write, used when the origin is OSS or S3 and is set to public read/write;
  • private_same_account: Private same account, used when the origin is OSS and the authentication type is private within the same account;
  • private_cross_account: Private cross-account, used when the origin is OSS and the authentication type is private across accounts;
  • private: Used when the origin is S3 and the authentication type is private.
public
AccessKeystringNo

The access key required for private authentication.

yourAccessKeyID
SecretKeystringNo

The secret key required for private authentication.

yourAccessKeySecret
VersionstringNo

The signature version required when the origin is AWS S3.

v2
RegionstringNo

The region of the origin required when the origin is AWS S3.

us-east-1
SiteIdlongYes

The site ID, which can be obtained by calling the ListSites API.

21655860979****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

CB1A380B-09F0-41BB-A198-72F8FD6DA2FE
Idlong

The ID of the newly created origin address pool.

103852052519****

Examples

Sample success responses

JSONformat

{
  "RequestId": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE\n",
  "Id": 0
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is invalid.The specified parameter is invalid.
400SourceNumberExceedLimitThe number of sources in the origin pool exceeds the quota limit.The number of sources that can be created in the origin pool has reached the upper limit of the package. Please check your package quota and upgrade the package to obtain more quota.
400PoolNumberExceedQuotaLimitThe 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.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.
400InternalExceptionFailed to call the service. Try again later or contact technical support.Failed to call the service. Try again later or contact technical support.
400InvalidParameter.AddressConflictDuplicate origin addresses. Make sure that each origin address for the same pool is unique.Duplicate origin addresses. Make sure that each origin address for the same pool is unique.
400OriginPoolNameConflictThe specified origin pool name already exists or its hostname conflicts with a load balancer name. Try again with a unique name.The specified origin pool name already exists or its hostname conflicts with a load balancer name. Try again with a unique name.
400SourceAddressInvalidInvalid origin address. Check whether the IP address or domain name is in the valid format.Invalid origin address. Check whether the IP address or domain name is in the valid format.
400SourceCircleExistThe 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.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.
404SiteNotFoundThe website does not exist or does not belong to you.The website does not exist or does not belong to you.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-11-07The Error code has changedView Change Details