Membuat origin pool untuk sebuah situs. Anda kemudian dapat menggunakan origin pool dengan Server Load Balancer atau untuk permintaan back-to-origin langsung.
Deskripsi operasi
You can add multiple origins to an origin pool, such as a domain name, IP, OSS, or S3. Back-to-origin authentication is available for OSS and S3 origins.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:CreateOriginPool |
create |
*Site
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
Nama origin pool. Nama harus unik dalam sebuah situs. |
pool1 |
| Enabled |
boolean |
No |
Apakah akan mengaktifkan origin pool.
|
true |
| Origins |
array<object> |
No |
Daftar origin yang akan ditambahkan ke origin pool. Gunakan array untuk menentukan beberapa origin. |
|
|
array<object> |
No |
The configuration for a single origin. |
||
| Name |
string |
No |
The name of the origin. The name must be unique within the origin pool. |
origin1 |
| Address |
string |
No |
The address of the origin. For example, www.example.com. |
www.example.com |
| Enabled |
boolean |
No |
Specifies whether the origin is enabled.
|
true |
| Header |
any |
No |
The request header to include in back-to-origin requests. Only the |
{ "Host": [ "example.com" ] } |
| Weight |
integer |
No |
The weight of the origin. The value must be an integer from 0 to 100. |
50 |
| Type |
string |
No |
The type of the origin. Valid values:
|
ip_domain |
| AuthConf |
object |
No |
The authentication configuration for the origin. Required if the origin is an OSS or AWS S3 bucket that requires authentication. |
|
| AuthType |
string |
No |
The authentication type. Valid values:
|
public |
| AccessKey |
string |
No |
The access key required for private authentication. |
yourAccessKeyID |
| SecretKey |
string |
No |
The secret key required for private authentication. |
yourAccessKeySecret |
| Version |
string |
No |
The signature version. Required for AWS S3 origins. |
v2 |
| Region |
string |
No |
The region of the origin. Required for AWS S3 origins. |
us-east-1 |
| IpVersionPolicy |
string |
No |
The IP protocol version for back-to-origin requests. Valid values:
|
round_robin |
| SiteId |
integer |
Yes |
ID situs. Untuk mendapatkan ID ini, panggil operasi ListSites. |
21655860979**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Response schema |
||
| RequestId |
string |
The request ID. |
CB1A380B-09F0-41BB-A198-72F8FD6DA2FE |
| Id |
integer |
The origin pool ID. |
103852052519**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE\n",
"Id": 0
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | SourceNumberExceedLimit | The number of sources in the origin pool exceeds the quota limit. | |
| 400 | PoolNumberExceedQuotaLimit | The number of origin pool you have added has reached the upper limit of the plan quota. Please delete the origin pool that is no longer in use or upgrade the plan and try again. | |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | InvalidParameter.AddressConflict | Duplicate origin addresses. Make sure that each origin address for the same pool is unique. | |
| 400 | OriginPoolNameConflict | The specified origin pool name already exists or its hostname conflicts with a load balancer name. Try again with a unique name. | |
| 400 | SourceAddressInvalid | Invalid origin address. Check whether the IP address or domain name is in the valid format. | |
| 400 | SourceCircleExist | The host record of the resource to be operated on is already the source station of another resource, or the source station of the current resource has been added as a host record. To avoid loopback, modify the host record or source station and retry. | |
| 400 | SourceInBlackList | The source is in the black list. | |
| 400 | InvalidParameter.PrivateIpAsSourceUnsupported | The provided origin is an invalid private IP address. Please verify and resubmit. | |
| 400 | InvalidParameter.SourceIpInBlacklist | The provided origin is an invalid private IP address. Please verify and resubmit. | |
| 400 | OriginPool.TypeNotSupport | The origin address pool type is not supported. | |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | |
| 404 | SiteNotFound | The website does not exist or does not belong to you. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.