HTTPS リスナーを設定します。
操作説明
Classic Load Balancer (CLB) インスタンスが作成されていること (「CreateLoadBalancer」をご参照ください)。
HTTPS リスナーが作成されていること (「CreateLoadBalancerHTTPSListener」をご参照ください)。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
slb:SetLoadBalancerHTTPSListenerAttribute |
update |
acl
*certificate
*loadbalancer
|
|
なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
CLB インスタンスが配置されているリージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| LoadBalancerId |
string |
必須 |
CLB インスタンスの ID。 |
lb-sjhfdji**** |
| ListenerPort |
integer |
必須 |
CLB インスタンスが使用するフロントエンドポート。 有効値:1~65535。 |
80 |
| Bandwidth |
integer |
任意 |
リスナーのピーク帯域幅。単位:Mbit/s。 有効値:
|
-1 |
| XForwardedFor |
string |
任意 |
|
on |
| Scheduler |
string |
任意 |
スケジューリングアルゴリズム。有効値:
|
wrr |
| StickySession |
string |
任意 |
スティッキーセッションを有効にするかどうかを指定します。有効値:
|
on |
| StickySessionType |
string |
任意 |
Cookie を処理するために使用されるメソッド。有効値:
説明
このパラメーターは、StickySession が on に設定されている場合に必須です。 |
insert |
| CookieTimeout |
integer |
任意 |
Cookie のタイムアウト期間。 有効値:1~86400。単位:秒。 説明
このパラメーターは、StickySession が on に、StickySessionType が insert に設定されている場合に必須です。 |
500 |
| Cookie |
string |
任意 |
バックエンドサーバーに設定されている Cookie。 Cookie 名は 1~200 文字で、ASCII 文字と数字のみ使用できます。コンマ (,)、セミコロン (;)、スペースは使用できません。ドル記号 ($) で始めることはできません。 説明
このパラメーターは、StickySession が on に、StickySessionType が server に設定されている場合に必須です。 |
testCookie |
| HealthCheck |
string |
任意 |
ヘルスチェックを有効にするかどうかを指定します。有効値:
|
on |
| HealthCheckMethod |
string |
任意 |
ヘルスチェックに使用される HTTP メソッド。有効値:head および get。 説明
このパラメーターは、HealthCheck が on に設定されている場合にのみ有効です。 |
get |
| HealthCheckDomain |
string |
任意 |
ヘルスチェックに使用されるドメイン名。有効値:
説明
このパラメーターは、HealthCheck パラメーターが on に設定されている場合にのみ有効です。 |
172.XX.XX.16 |
| HealthCheckURI |
string |
任意 |
ヘルスチェックに使用される URI。 URI は、長さが 1~80 文字で、スラッシュ (/) で始まる必要があります。URI には、英字、数字、および次の特殊文字 説明
このパラメーターは、HealthCheck パラメーターが on に設定されている場合にのみ有効になります。 |
/test/index.html |
| HealthyThreshold |
integer |
任意 |
バックエンドサーバーのヘルスチェックステータスを異常から正常に変更するために必要な、ヘルスチェックの連続成功回数。 値の範囲:2~10。 説明
このパラメーターは、HealthCheck パラメーターが on に設定されている場合にのみ有効になります。 |
4 |
| UnhealthyThreshold |
integer |
任意 |
バックエンドサーバーのヘルスチェックステータスが正常から異常に変わるしきい値となる、連続したヘルスチェック失敗の回数です。 値の範囲:2~10。 説明
このパラメーターは、HealthCheck パラメーターが on に設定されている場合にのみ有効になります。 |
4 |
| HealthCheckTimeout |
integer |
任意 |
ヘルスチェックの応答タイムアウト期間です。 Elastic Compute Service (ECS) インスタンスなどのバックエンドサーバーが、指定されたタイムアウト期間内にヘルスチェックの応答を返さない場合、ヘルスチェックは失敗します。 単位:秒。 有効な値:1~300。 説明
このパラメーターは、HealthCheck パラメーターが on に設定されている場合にのみ有効です。 |
3 |
| HealthCheckInterval |
integer |
任意 |
ヘルスチェックの実行間隔。単位:秒。 有効な値:1~50。 説明
このパラメーターは、HealthCheck パラメーターが on に設定されている場合にのみ有効になります。 |
5 |
| HealthCheckConnectPort |
integer |
任意 |
ヘルスチェックに使用するポートです。 有効な値:1~65535。 説明
このパラメーターは、HealthCheck パラメーターが on に設定されている場合にのみ有効です。 |
8080 |
| HealthCheckHttpCode |
string |
任意 |
ヘルスチェックが成功したことを示す HTTP ステータスコード。複数の HTTP ステータスコードはコンマ (,) で区切ります。 有効な値:http_2xx、http_3xx、http_4xx、http_5xx。 説明
このパラメーターは、HealthCheck パラメーターが on に設定されている場合にのみ有効になります。 |
http_2xx,http_3xx |
| ServerCertificateId |
string |
任意 |
サーバー証明書の ID。 |
idkp-123-cn-te**** |
| CACertificateId |
string |
任意 |
CA 証明書の ID。
|
139a00604ad-cn-east-**** |
| VServerGroup |
string |
任意 |
vServer グループを使用するかどうかを指定します。 有効な値:
|
on |
| VServerGroupId |
string |
任意 |
vServer グループの ID。 |
rsp-cige6j**** |
| XForwardedFor_SLBIP |
string |
任意 |
|
on |
| XForwardedFor_SLBID |
string |
任意 |
|
on |
| XForwardedFor_proto |
string |
任意 |
|
on |
| Gzip |
string |
任意 |
|
on |
| AclId |
string |
任意 |
リスナーに関連付けられているネットワークアクセスコントロールリスト (ACL) の ID。 このパラメーターは、AclStatus が on に設定されている場合に必須です。 |
acl-a2do9e413e0spzasx**** |
| AclType |
string |
任意 |
ネットワーク ACL のタイプ。有効値:
説明
このパラメーターは、AclStatus が on に設定されている場合に必須です。 |
white |
| AclStatus |
string |
任意 |
アクセス制御を有効にするかどうかを指定します。有効値:
|
off |
| IdleTimeout |
integer |
任意 |
アイドル接続のタイムアウト期間。単位:秒。有効値:1~60。デフォルト値:15。 指定されたタイムアウト期間内にリクエストが受信されない場合、CLB は接続を閉じます。新しいリクエストが受信されると、CLB は新しい接続を確立します。 |
23 |
| RequestTimeout |
integer |
任意 |
リクエストのタイムアウト期間。単位:秒。有効値:1~180。デフォルト値:60。 バックエンドサーバーが指定されたタイムアウト期間内に応答しない場合、CLB はクライアントに HTTP 504 エラーコードを返します。 |
223 |
| EnableHttp2 |
string |
任意 |
HTTP/2 を有効にするかどうかを指定します。有効値:
|
off |
| TLSCipherPolicy |
string |
任意 |
Transport Layer Security (TLS) セキュリティポリシー。各セキュリティポリシーには、TLS プロトコルバージョンと暗号スイートが含まれています。
|
tls_cipher_policy_1_2 |
| Description |
string |
任意 |
リスナーの名前。 名前は 1~256 文字で、文字、数字、ハイフン (-)、スラッシュ (/)、ピリオド (.)、アンダースコア (_) を使用できます。 |
https_80 |
| XForwardedFor_SLBPORT |
string |
任意 |
|
off |
| XForwardedFor_ClientSrcPort |
string |
任意 |
|
off |
| DryRun |
boolean |
任意 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
例
成功レスポンス
JSONJSON
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ParamDuplicateError | The specified parameter value of XForwardedFor_ClientCertSubjectDNAlias is duplicate. Please change to a different one. | |
| 400 | IpVersionConflict | The ip version of this LoadBalancer and the Acl is conflict. | |
| 400 | InvalidParameter.IdleTimeout | The specified IdleTimeout exceeds the limit. | |
| 400 | InvalidParameter.RequestTimeout | The specified RequestTimeout exceeds the limit. | |
| 400 | ListenerForwardNotSupport | X-Forward-For is not supported to a ipv6 instance. | |
| 400 | InvalidParameter.RegionNotSupport | The region does not support the parameter: %s. | |
| 400 | InvalidParameter.SpecNotSupport | The loadBalancer of shared spec does not support the parameter: %s. | |
| 400 | OperationFailed.ServerGroupInUse | The VServerGroup or MasterSlaveServerGroup can not be close for this listener. | |
| 400 | InvalidParameter.VServerGroupId | The MasterSlaveServerGroup can not be attached to HTTP or HTTPS listener. | |
| 400 | MissingParam.HealthCheckDomain | The HealthCheckDomain is required when HealthCheckHttpVersion is http1.1. | |
| 400 | InvalidParameter.HealthCheckHttpVersion | The param HealthCheckHttpVersion is invalid. | |
| 400 | Duplicated.AclEntry | %s. | |
| 400 | CertificateNotExist | The specified CertificateId does not exist. | |
| 400 | InvalidTLSPolicyId.NotExist | The specified TLS cipher policy does not exist. | |
| 400 | TLSPolicyConfiguring | The specified TLS cipher policy is configuring. | |
| 400 | TLSCipherPolicyVipRelationOverLimit | The number of listeners associated with a policy has exceeded. | |
| 400 | TooManyCertificates | The number of certificates must not be greater than one. | |
| 400 | CertificateTypeMismatched | The certificate type does not match. | |
| 400 | MissingParam.ServerCertificates | Server certificates are required. | |
| 400 | CnCertificateNotSupport | The cn certificate is not support. | |
| 400 | InvalidParam.CertificateBindingType | The param CertificateBindingType is invalid. | |
| 400 | InvalidParamSize.ServerCertificates | The size of param ServerCertificates is invalid. | |
| 400 | TooManyCertificates.ServerCertificates | The number of certificates must not be greater than one. | |
| 400 | AclListenerOverLimit | This acl has reached the limit of binding to listeners. | |
| 400 | QuotaLimitExceeds.AclAttachedToListener | The number of Acl bound listeners has reached the quota limit | |
| 400 | QuotaLimitExceeds.TotalAclEntry | The number of Acl entries has reached the quota limit. | |
| 400 | QuotaLimitExceeds.AclListenerOverLimit | This acl has reached the limit of binding to listeners. | |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | |
| 404 | ResourceNotFound.Certificate | The specified resource is not found. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。