All Products
Search
Document Center

Edge Security Acceleration:CreateOriginPool

Last Updated:Jun 11, 2026

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

esa:CreateOriginPool

create

*Site

acs:esa:{#regionId}:{#accountId}:site/{#SiteId}

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: Diaktifkan.

  • false: Dinonaktifkan.

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: enabled

  • false: disabled

true

Header

any

No

The request header to include in back-to-origin requests. Only the Host header is supported.

{ "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: An IP address or a domain name.

  • OSS: An Alibaba Cloud OSS bucket.

  • S3: An AWS S3 bucket.

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: Public read/write. Use this for public OSS or AWS S3 buckets.

  • private_same_account: Private authentication for an OSS bucket in the same Alibaba Cloud account.

  • private_cross_account: Private authentication for an OSS bucket in a different Alibaba Cloud account.

  • private: Private authentication for an AWS S3 bucket.

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: Default. Randomly selects an IPv4 or IPv6 origin.

  • ipv4_first: Prioritizes IPv4 origins.

  • ipv6_first: Prioritizes IPv6 origins.

  • follow: Uses the same IP protocol version as the client's request.

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.