All Products
Search
Document Center

Edge Security Acceleration:ListOriginPools

Last Updated:Apr 16, 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.

List Origin Pools

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:ListOriginPoolslist
*Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

Page number, default value is 1.

1
PageSizeintegerNo

Page size, an integer greater than 0, with a maximum of 500. If the value exceeds 500, it will be set to 500.

20
NamestringNo

Name of the origin pool.

pool1
MatchTypestringNo

Type of name match query, supporting the following two types, with exact match as the default.

  • fuzzy: Fuzzy query.
  • exact: Exact query.
exact
OrderBystringNo

Sorting, supports ascending and descending order by ID, default is descending by ID, which is positively correlated with creation time.

  • -id: Sort by ID in descending order.
  • id: Sort by ID in ascending order.
id
SiteIdlongYes

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

151538882642832

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Request ID.

15C66C7B-671A-4297-9187-2C4477247A74
OriginPoolsarray<object>

List of origin pools.

OriginPoolobject

Information about the origin pool.

Idlong

ID of the origin pool.

1038520525196928
Namestring

Name of the origin pool, unique within a site.

pool1
SiteIdlong

ID of the site to which the origin pool belongs.

216558609793952
RecordNamestring

Domain name assigned to the origin pool, which can be used as the origin address for records under the site.

pool1.example.com
Enabledboolean

Whether the origin pool is enabled:

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

Reference information for the origin pool. The origin pool is considered referenced when it is configured in a load balancer or set as the origin for a record.

LoadBalancersarray<object>

List of load balancers using this origin pool.

LoadBalancerobject

Information about the load balancers using this origin pool.

Namestring

Name of the load balancer.

lb1.example.com
Idlong

ID of the load balancer.

998740660522624
DnsRecordsarray<object>
DnsRecordobject

Information about the layer 7 records that use this origin pool as the origin.

Namestring

Record name.

www.example.com
Idlong

Record ID.

1042852886352704
IPARecordsarray<object>

List of layer 4 records that use this origin pool as the origin.

IPARecordobject

Information about the layer 4 records that use this origin pool as the origin.

Namestring

Record name.

ipa.example.com
Idlong

Record ID.

1042852886352704
ReferenceLBCountinteger

Number of load balancers that reference this origin pool.

5
Originsarray<object>

Information about the origins added to the origin pool.

Originobject

Information about the origins added to the origin pool.

Idlong

Origin ID.

997502094872132
Namestring

Origin name.

origin1
Addressstring

Origin address, e.g., www.example.com.

www.example.com
Enabledboolean

Whether the origin is enabled:

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

Weight, an integer between 0 and 100.

50
Typestring

Origin type:

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

The request header to be carried during back-to-origin, only supports Host.

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

Authentication information. When the origin is OSS or S3 and requires authentication, you need to provide related configuration information for authentication.

AuthTypestring

Authentication type.

  • public: Public read/write, used when the origin is OSS or S3 and it 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
AccessKeystring

The AccessKey required for private authentication.

yourAccessKeyID
SecretKeystring

The SecretKey required for private authentication.

yourAccessKeySecret
Versionstring

The signature version required when the origin is AWS S3.

v2
Regionstring

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

us-east-1
PageNumberinteger

Current page number.

1
PageSizeinteger

Page size.

20
TotalCountinteger

Total count.

16
TotalPageinteger

Total number of pages.

10

Examples

Sample success responses

JSONformat

{
  "RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
  "OriginPools": [
    {
      "Id": 1038520525196928,
      "Name": "pool1",
      "SiteId": 216558609793952,
      "RecordName": "pool1.example.com\n",
      "Enabled": false,
      "References": {
        "LoadBalancers": [
          {
            "Name": "lb1.example.com\n",
            "Id": 998740660522624
          }
        ],
        "DnsRecords": [
          {
            "Name": "www.example.com\n",
            "Id": 1042852886352704
          }
        ],
        "IPARecords": [
          {
            "Name": "ipa.example.com\n",
            "Id": 1042852886352704
          }
        ]
      },
      "ReferenceLBCount": 5,
      "Origins": [
        {
          "Id": 997502094872132,
          "Name": "origin1",
          "Address": "www.example.com",
          "Enabled": true,
          "Weight": 50,
          "Type": "S3",
          "Header": "{\n        \"Host\": [\n          \"example.com\"\n        ]\n      }",
          "AuthConf": {
            "AuthType": "public",
            "AccessKey": "yourAccessKeyID",
            "SecretKey": "yourAccessKeySecret",
            "Version": "v2",
            "Region": "us-east-1\n"
          }
        }
      ]
    }
  ],
  "PageNumber": 1,
  "PageSize": 20,
  "TotalCount": 16,
  "TotalPage": 10
}

Error codes

HTTP status codeError codeError messageDescription
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.CoverageThe selected location is unavailable in your plan. Change the location to one that is covered by the plan and try again.The selected location is unavailable in your plan. Change the location to one that is covered by the plan and try again.
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.