サイトのオリジンプールを作成します。作成したオリジンプールは、Server Load Balancer (SLB) で使用したり、直接のバックツーオリジンリクエストに使用したりできます。
操作説明
オリジンプールには、ドメイン名、IP、OSS、S3 などの複数のオリジンを追加できます。OSS および S3 オリジンでは、オリジン認証を利用できます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:CreateOriginPool |
create |
*Site
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Name |
string |
必須 |
オリジンプールの名前。サイト内で一意である必要があります。 |
pool1 |
| Enabled |
boolean |
任意 |
オリジンプールが有効かどうかを指定します。
|
true |
| Origins |
array<object> |
任意 |
オリジンプールに追加するオリジンのリスト。配列を使用して複数のオリジンを指定します。 |
|
|
array<object> |
任意 |
単一のオリジンの設定。 |
||
| Name |
string |
任意 |
オリジンの名前。オリジンプール内で一意である必要があります。 |
origin1 |
| Address |
string |
任意 |
オリジンのアドレス。例: www.example.com。 |
www.example.com |
| Enabled |
boolean |
任意 |
オリジンが有効かどうかを指定します。
|
true |
| Header |
any |
任意 |
オリジンフェッチに含めるリクエストヘッダー。 |
{ "Host": [ "example.com" ] } |
| Weight |
integer |
任意 |
オリジンの加重。0 ~ 100 の整数である必要があります。 |
50 |
| Type |
string |
任意 |
オリジンのタイプ。有効な値は次のとおりです。
|
ip_domain |
| AuthConf |
object |
任意 |
オリジンの認証設定。認証が必要な OSS または AWS S3 バケットの場合に必要です。 |
|
| AuthType |
string |
任意 |
認証タイプ。有効な値は次のとおりです。
|
public |
| AccessKey |
string |
任意 |
プライベート認証に必要なアクセスキー。 |
yourAccessKeyID |
| SecretKey |
string |
任意 |
プライベート認証に必要なシークレットキー。 |
yourAccessKeySecret |
| Version |
string |
任意 |
署名バージョン。AWS S3 オリジンの場合に必要です。 |
v2 |
| Region |
string |
任意 |
オリジンのリージョン。AWS S3 オリジンの場合に必要です。 |
us-east-1 |
| IpVersionPolicy |
string |
任意 |
オリジンフェッチの IP プロトコルバージョン。有効な値は次のとおりです。
|
round_robin |
| SiteId |
integer |
必須 |
サイト ID。この ID を取得するには、ListSites オペレーションを呼び出します。 |
21655860979**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンススキーマ |
||
| RequestId |
string |
リクエスト ID。 |
CB1A380B-09F0-41BB-A198-72F8FD6DA2FE |
| Id |
integer |
オリジンプールの ID。 |
103852052519**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE\n",
"Id": 0
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。