Gateway Load Balancer(GWLB)インスタンスのリスナーを作成します。
操作説明
CreateListener 操作は非同期です。リクエストを送信すると、システムはリクエスト ID を返します。リスナーはバックグラウンドで作成されます。 GetListenerAttribute 操作を呼び出して、リスナーの作成ステータスをクエリできます。
-
リスナーが Provisioning 状態の場合、リスナーは作成中です。
-
リスナーが Running 状態の場合、リスナーは作成済みです。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
gwlb:CreateListener |
create |
*LoadBalancer
*ServerGroup
*Listener
|
なし | なし |
リクエストパラメーター
|
パラメーター |
タイプ |
必須 / 任意 |
説明 |
例 |
| LoadBalancerId |
string |
必須 |
GWLB インスタンスの ID です。 |
gwlb-te609d6696632f7***** |
| ListenerDescription |
string |
任意 |
リスナーの説明です。 説明は 2 ~ 256 文字でなければなりません。中国語の文字、英字、数字、カンマ( , )、ピリオド( . )、セミコロン( ; )、スラッシュ( / )、アットマーク( @ )、アンダースコア( _ )、ハイフン( - )を使用できます。 |
listener-description |
| ServerGroupId |
string |
必須 |
サーバーグループ ID です。 |
sgp-ckh01px70dszof**** |
| TcpIdleTimeout |
integer |
任意 |
アイドル状態の TCP 接続のタイムアウト期間です。 有効な値: 60 ~ 6000 秒。 デフォルト値: 350 秒。 |
350 |
| DryRun |
boolean |
任意 |
ドライランを実行するかどうかを指定します。有効な値:
|
false |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークンです。 クライアントを使用してトークンを生成できますが、異なるリクエスト間でトークンが一意であることを確認する必要があります。トークンには ASCII 文字のみを含めることができます。 説明
このパラメーターを指定しない場合、システムはリクエストの RequestId を ClientToken として自動的に使用します。 RequestId はリクエストごとに異なる場合があります。 |
123e4567-e89b-12d3-a456-42665544**** |
| Tag |
array<object> |
任意 |
タグです。呼び出しごとに最大 20 個のタグを指定できます。 |
|
|
object |
任意 |
タグです。 |
||
| Key |
string |
任意 |
タグキーです。このパラメーターを指定する場合、空にすることはできません。タグキーは最大 128 文字で、 |
testKey |
| Value |
string |
任意 |
タグ値です。タグ値は最大 256 文字で、 |
testValue |
レスポンスパラメーター
|
パラメーター |
タイプ |
説明 |
例 |
|
object |
返されたデータです。 |
||
| ListenerId |
string |
リスナー ID です。 |
lsn-wi3c0v30ivysrg**** |
| RequestId |
string |
リクエスト ID です。 |
A045E652-D298-5E70-A978-7247135336FB |
例
成功レスポンス
JSONJSON
{
"ListenerId": "lsn-wi3c0v30ivysrg****",
"RequestId": "A045E652-D298-5E70-A978-7247135336FB"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IncorrectBusinessStatus.LoadBalancer | The business status of %s [%s] is incorrect. | |
| 400 | MissingParam.TagKey | The param of TagKey is missing. | |
| 400 | MissingParam.TagValue | The param of TagValue is missing. | |
| 400 | OperationDenied.TooManyListeners | The operation is not allowed because of TooManyListener. | |
| 400 | IncorrectStatus.LoadBalancer | The status of %s [%s] is incorrect. | |
| 400 | ResourceInUse.IP | The specified resource of IP is in use. | |
| 400 | Mismatch.VpcId | The %s is mismatched for %s and %s. | |
| 400 | IncorrectStatus.ServerGroup | The status of %s [%s] is incorrect. | |
| 400 | DuplicatedParam.TagKey | The param of %s is duplicated. | |
| 400 | IllegalParam.TagKey | The param of %s is illegal. | |
| 400 | IllegalParam.TagValue | The param of %s is illegal. | |
| 400 | OperationDenied.TcpIdleTimeoutConflictWithScheduler | The TCP idle timeout of listener must be default value when the scheduling algorithm of server group is not 5TCH. | |
| 404 | ResourceNotFound.LoadBalancer | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.ServerGroup | The specified resource of %s is not found. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。