List Origin Pools
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
esa:ListOriginPools | list | *Site acs:esa:{#regionId}:{#accountId}:site/{#SiteId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageNumber | integer | No | Page number, default value is 1. | 1 |
PageSize | integer | No | Page size, an integer greater than 0, with a maximum of 500. If the value exceeds 500, it will be set to 500. | 20 |
Name | string | No | Name of the origin pool. | pool1 |
MatchType | string | No | Type of name match query, supporting the following two types, with exact match as the default.
| exact |
OrderBy | string | No | Sorting, supports ascending and descending order by ID, default is descending by ID, which is positively correlated with creation time.
| id |
SiteId | long | Yes | Site ID, which can be obtained by calling the ListSites API. | 151538882642832 |
Response parameters
Examples
Sample success responses
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"
}
}
]
}
],
"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. |
For a list of error codes, visit the Service error codes.