Retrieves the details of a specific origin pool by its ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetOriginPool |
get |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The origin pool ID. To get it, call ListOriginPools. |
1038520525196928 |
| SiteId |
integer |
Yes |
The site ID. To get it, call ListSites. |
216558609793952 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| Id |
integer |
The origin pool ID. |
103852052519**** |
| Name |
string |
The name of the origin pool. The name must be unique within a site. |
pool1 |
| SiteId |
integer |
The ID of the site that contains the origin pool. |
21655860979**** |
| 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 |
Indicates whether the origin pool is enabled.
|
true |
| References |
object |
Resources that reference the origin pool. An origin pool is referenced if a load balancer or record uses it as an origin. |
|
| LoadBalancers |
array<object> |
The 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. |
99874066052**** |
| DnsRecords |
array<object> |
The Layer 7 records that use this origin pool as their origin. |
|
|
object |
A Layer 7 record that uses this origin pool as its origin. |
||
| Name |
string |
The name of the record. |
www.example.com |
| Id |
integer |
The ID of the record. |
104285288635**** |
| IPARecords |
array<object> |
The Layer 4 records that use this origin pool as their origin. |
|
|
object |
A Layer 4 record that uses this origin pool as its origin. |
||
| Name |
string |
The name of the record. |
ipa.example.com |
| Id |
integer |
The ID of the record. |
104285288635**** |
| ReferenceLBCount |
integer |
The number of load balancers that reference this origin pool. |
5 |
| Origins |
array<object> |
The origins in the origin pool. |
|
|
array<object> |
An origin in the origin pool. |
||
| Id |
integer |
The origin ID. |
99750209487**** |
| Name |
string |
The origin name. |
origin1 |
| Address |
string |
The origin address, such as www.example.com. |
www.example.com |
| Enabled |
boolean |
Indicates whether the origin is enabled.
|
true |
| Weight |
integer |
The weight of the origin. Must be an integer from 0 to 100. |
50 |
| Type |
string |
The type of the origin.
|
ip_domain |
| Header |
any |
The request header to include in origin requests. Only the Host header is supported. |
{ "Host": [ "example.com" ] } |
| AuthConf |
object |
The authentication configuration. Required if the origin is an OSS or S3 bucket that requires authentication. |
|
| AuthType |
string |
The authentication type.
|
public |
| AccessKey |
string |
The AccessKey ID. Required if |
yourAccessKeyID |
| SecretKey |
string |
The AccessKey secret. Required if |
yourAccessKeySecret |
| Version |
string |
The signature version. Required if the origin is an AWS S3 bucket. |
v4 |
| Region |
string |
The AWS Region of the origin. Required if the origin is an AWS S3 bucket. |
us-east-1 |
| IpVersionPolicy |
string |
The IP version policy for origin requests.
|
round_robin |
Examples
Success response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"Id": 0,
"Name": "pool1",
"SiteId": 0,
"RecordName": "pool1.example.com",
"Enabled": true,
"References": {
"LoadBalancers": [
{
"Name": "lb1.example.com",
"Id": 0
}
],
"DnsRecords": [
{
"Name": "www.example.com",
"Id": 0
}
],
"IPARecords": [
{
"Name": "ipa.example.com",
"Id": 0
}
]
},
"ReferenceLBCount": 5,
"Origins": [
{
"Id": 0,
"Name": "origin1",
"Address": "www.example.com",
"Enabled": true,
"Weight": 50,
"Type": "ip_domain",
"Header": "{\n \"Host\": [\n \"example.com\"\n ]\n }",
"AuthConf": {
"AuthType": "public",
"AccessKey": "yourAccessKeyID",
"SecretKey": "yourAccessKeySecret",
"Version": "v4",
"Region": "us-east-1\n"
},
"IpVersionPolicy": "round_robin"
}
]
}
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 | OriginPoolNotExist | The specified origin pool does not exist or does not belong to your account or website. Check and try again. | The specified origin pool does not exist or does not belong to your account or website. Check 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.