Queries all origin pools under a site with pagination. You can search by pool name using exact or fuzzy matching.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:ListOriginPools |
list |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Default: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Must be a positive integer. Maximum value: 500. Values greater than 500 are automatically set to 500. |
20 |
| Name |
string |
No |
The name of the origin pool. |
pool1 |
| MatchType |
string |
No |
The query type for the origin pool name. Default: exact. Valid values:
|
exact |
| OrderBy |
string |
No |
The sort order based on origin pool ID. IDs are positively correlated with creation time.
|
id |
| SiteId |
integer |
Yes |
The site ID. You can call the |
151538882642832 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
15C66C7B-671A-4297-9187-2C4477247A74 |
| OriginPools |
array<object> |
A list of origin pools. |
|
|
array<object> |
Details of an origin pool. |
||
| Id |
integer |
The ID of the origin pool. |
1038520525196928 |
| Name |
string |
The origin pool name. Must be unique within a site. |
pool1 |
| SiteId |
integer |
The ID of the site to which the origin pool belongs. |
216558609793952 |
| RecordName |
string |
The domain name assigned to the origin pool, used as the origin address for records within the site. |
pool1.example.com |
| Enabled |
boolean |
Specifies whether the origin pool is enabled.
|
false |
| References |
object |
Resources that reference this origin pool. A pool is referenced when a load balancer or record uses it as an origin. |
|
| LoadBalancers |
array<object> |
Load balancers that use this origin pool. |
|
|
object |
A load balancer that uses this origin pool. |
||
| Name |
string |
The name of the load balancer. |
lb1.example.com |
| Id |
integer |
The ID of the load balancer. |
998740660522624 |
| DnsRecords |
array<object> |
Layer 7 records that use this origin pool as an origin. |
|
|
object |
A Layer 7 record that uses this origin pool as an origin. |
||
| Name |
string |
The name of the record. |
www.example.com |
| Id |
integer |
The ID of the record. |
1042852886352704 |
| IPARecords |
array<object> |
Layer 4 records that use this origin pool as an origin. |
|
|
object |
A Layer 4 record that uses this origin pool as an origin. |
||
| Name |
string |
The name of the record. |
ipa.example.com |
| Id |
integer |
The ID of the record. |
1042852886352704 |
| ReferenceLBCount |
integer |
The number of load balancers referencing this origin pool. |
5 |
| Origins |
array<object> |
The origins in the pool. |
|
|
array<object> |
Details of an origin in the pool. |
||
| Id |
integer |
The ID of the origin. |
997502094872132 |
| Name |
string |
The name of the origin. |
origin1 |
| Address |
string |
The address of the origin, such as |
www.example.com |
| Enabled |
boolean |
Specifies whether the origin is enabled.
|
true |
| Weight |
integer |
The weight of the origin. Valid values: 0 to 100. |
50 |
| Type |
string |
The origin type. Valid values:
|
S3 |
| Header |
any |
The request header sent with origin requests. Only the |
{ "Host": [ "example.com" ] } |
| AuthConf |
object |
Authentication configuration for the origin. Required if the origin (such as an OSS or AWS S3 bucket) requires authentication. |
|
| AuthType |
string |
The authentication type. Valid values:
|
public |
| AccessKey |
string |
The AccessKey for private authentication. |
yourAccessKeyID |
| SecretKey |
string |
The SecretKey for private authentication. |
yourAccessKeySecret |
| Version |
string |
The signature version for AWS S3 bucket origins. |
v2 |
| Region |
string |
The origin region. Required for AWS S3 bucket origins. |
us-east-1 |
| IpVersionPolicy |
string |
The IP version policy for origin requests. Valid values:
|
round_robin |
| PageNumber |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
20 |
| TotalCount |
integer |
The total number of origin pools. |
16 |
| TotalPage |
integer |
The total number of pages. |
10 |
Examples
Success response
JSON format
{
"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"
},
"IpVersionPolicy": "round_robin"
}
]
}
],
"PageNumber": 1,
"PageSize": 20,
"TotalCount": 16,
"TotalPage": 10
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | InvalidParameter.Coverage | The 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. |
| 404 | SiteNotFound | The website does not exist or does not belong to you. | The website does not exist or does not belong to you. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.