Queries all origin address pools under a site. Supports pagination and exact or fuzzy search by origin address pool name.
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 value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. The value must be a positive integer. Maximum value: 500. If the value exceeds 500, it is reset to 500. |
20 |
| Name |
string |
No |
The name of the origin address pool. |
pool1 |
| MatchType |
string |
No |
The match type for name-based queries. Valid values:
|
exact |
| OrderBy |
string |
No |
The sort order. Supports ascending or descending order by ID. The ID is positively correlated with the creation time. Default value: descending order by ID. Valid values:
|
id |
| SiteId |
integer |
Yes |
The site ID. You can call the ListSites operation to obtain the site ID. |
151538882642832 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
15C66C7B-671A-4297-9187-2C4477247A74 |
| OriginPools |
array<object> |
The list of origin address pools. |
|
|
array<object> |
The origin address pool information. |
||
| Id |
integer |
The origin address pool ID. |
1038520525196928 |
| Name |
string |
The name of the origin address pool. The name must be unique within a site. |
pool1 |
| SiteId |
integer |
The ID of the site to which the origin address pool belongs. |
216558609793952 |
| RecordName |
string |
The domain name allocated to the origin IPAM pool. It can be used as the addresses of the origin server for records under the site. |
pool1.example.com |
| Enabled |
boolean |
Indicates whether the origin address pool is enabled. Valid values:
|
false |
| References |
object |
The reference information of the origin IPAM pool. An origin IPAM pool is considered referenced when it is configured for load balancing or configured as an origin server in a record. |
|
| LoadBalancers |
array<object> |
The list of load balancing instances that use this origin IPAM pool. |
|
|
object |
The information about the load balancing instance that uses this origin IPAM pool. |
||
| Name |
string |
The name of the load balancing instance. |
lb1.example.com |
| Id |
integer |
The load balancing instance ID. |
998740660522624 |
| DnsRecords |
array<object> |
The list of Layer 7 records that use this origin address pool as the origin server. |
|
|
object |
The information about the Layer 7 record that uses this origin address pool as the origin server. |
||
| Name |
string |
The record name. |
www.example.com |
| Id |
integer |
The record ID. |
1042852886352704 |
| IPARecords |
array<object> |
The list of Layer 4 records that use this origin address pool as the origin server. |
|
|
object |
The information about the Layer 4 record that uses this origin address pool as the origin server. |
||
| Name |
string |
The record name. |
ipa.example.com |
| Id |
integer |
The record ID. |
1042852886352704 |
| ReferenceLBCount |
integer |
The number of load balancing instances that reference this origin IPAM pool. |
5 |
| Origins |
array<object> |
The origin server information added to the origin address pool. |
|
|
array<object> |
The origin server information added to the origin address pool. |
||
| Id |
integer |
The origin server ID. |
997502094872132 |
| Name |
string |
The origin server name. |
origin1 |
| Address |
string |
The addresses of the origin server, such as www.example.com. |
www.example.com |
| Enabled |
boolean |
Indicates whether the origin server is enabled. Valid values:
|
true |
| Weight |
integer |
The weight. The value must be an integer from 0 to 100. |
50 |
| Type |
string |
The origin server type. Valid values:
|
S3 |
| Header |
any |
The request header included in back-to-origin requests. Only the Host header is supported. |
{ "Host": [ "example.com" ] } |
| AuthConf |
object |
The authentication information. If the origin server is an OSS or S3 origin server that requires authentication, you must provide the authentication configuration information. |
|
| AuthType |
string |
The authentication type. Valid values:
|
public |
| AccessKey |
string |
The AccessKey required for private authentication. |
yourAccessKeyID |
| SecretKey |
string |
The SecretKey required for private authentication. |
yourAccessKeySecret |
| Version |
string |
The signature version required when the origin server is an AWS S3 origin server. |
v2 |
| Region |
string |
The region of the origin server required when the origin server is an AWS S3 origin server. |
us-east-1 |
| IpVersionPolicy |
string |
The IP protocol version used for back-to-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 entries. |
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.