オリジンアドレスプールIDで指定した単一のオリジンアドレスプールを変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:UpdateOriginPool |
update |
*Site
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Id |
integer |
必須 |
オリジンアドレスプールID。 ListOriginPools オペレーションを呼び出してIDを取得できます。 |
1038520525196928 |
| Enabled |
boolean |
任意 |
オリジンアドレスプールを有効にするかどうかを指定します。有効な値:
|
true |
| Origins |
array<object> |
任意 |
オリジンアドレスプールに追加するオリジンサーバー情報。複数のオリジンサーバーを渡すには配列を使用します。 |
|
|
array<object> |
任意 |
オリジンアドレスプールに追加するオリジンサーバー情報。 |
||
| Name |
string |
任意 |
オリジンサーバー名。名前はオリジンアドレスプール内で一意である必要があります。 |
origin1 |
| Address |
string |
任意 |
www.example.comなどのオリジンサーバーのアドレス。 |
www.example.com |
| Enabled |
boolean |
任意 |
オリジンサーバーを有効にするかどうかを指定します。有効な値:
|
true |
| Header |
any |
任意 |
Back-to-Originリクエストに含まれるリクエストヘッダー。Hostのみサポートされています。 |
{ "Host": [ "example.com" ] } |
| Weight |
integer |
任意 |
重み。値は0から100の整数です。 |
50 |
| Type |
string |
任意 |
オリジンサーバーのタイプ。有効な値:
|
OSS |
| AuthConf |
object |
任意 |
認証情報。オリジンサーバーがOSS、S3、またはその他の認証が必要なオリジンサーバーの場合、このパラメーターは必須です。 |
|
| AuthType |
string |
任意 |
認証タイプ。有効な値:
|
public |
| AccessKey |
string |
任意 |
プライベート認証に必要なAccessKey。 |
yourAccessKeyID |
| SecretKey |
string |
任意 |
プライベート認証に必要なSecretKey。 |
yourAccessKeySecret |
| Version |
string |
任意 |
オリジンサーバーがAWS S3の場合に必要な署名バージョン。 |
v2 |
| Region |
string |
任意 |
オリジンサーバーがAWS S3の場合に必要なオリジンサーバーのリージョン。 |
us-east-1 |
| IpVersionPolicy |
string |
任意 |
Back-to-Originリクエストに使用するIPプロトコルバージョン。有効な値:
|
round_robin |
| SiteId |
integer |
必須 |
サイトID。 ListSites オペレーションを呼び出してIDを取得できます。 |
216558609793952 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ |
||
| RequestId |
string |
リクエストID。 |
15C66C7B-671A-4297-9187-2C4477247A74 |
| Id |
integer |
オリジンアドレスプールID。 |
1038520525196928 |
例
成功レスポンス
JSONJSON
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
"Id": 1038520525196928
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | SourceNumberExceedLimit | The number of sources in the origin pool exceeds the quota limit. | |
| 400 | InternalException | 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. | |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | |
| 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 | LockFailed | The system is handling requests you previously submitted. Try again later. | |
| 400 | InvalidParameter.AddressConflict | Duplicate origin addresses. Make sure that each origin address for the same pool is unique. | |
| 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.SourceIpInBlacklist | The provided origin is an invalid private IP address. Please verify and resubmit. | |
| 400 | InvalidParameter.PrivateIpAsSourceUnsupported | 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 | OriginPool.CheckQuotaFailed | Failed to check source pool quota for site, please try again later. | |
| 404 | SiteNotFound | The website does not exist or does not belong to you. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。