サーバーグループにバックエンドサーバーを追加します。
操作説明
AddServersToServerGroup は非同期操作です。リクエストを送信した後、システムはリクエスト ID を返しますが、バックエンドサーバーはサーバーグループにすぐには追加されません。システムはバックグラウンドでバックエンドサーバーを追加します。
ListServerGroups 操作を呼び出して、サーバーグループのステータスをクエリできます。
サーバーグループが [構成中] 状態の場合、サーバーグループは変更中です。
サーバーグループが [利用可能] 状態の場合、サーバーグループは実行中です。
ListServerGroupServers 操作を呼び出して、バックエンドサーバーのステータスをクエリできます。
バックエンドサーバーが [追加中] 状態の場合、バックエンドサーバーはサーバーグループに追加中です。
バックエンドサーバーが [利用可能] 状態の場合、バックエンドサーバーは実行中です。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
gwlb:AddServersToServerGroup |
create |
*ServerGroup
Instance
NetworkInterface
ContainerGroup
|
なし | なし |
リクエストパラメーター
|
パラメーター |
タイプ |
必須 / 任意 |
説明 |
例 |
| ServerGroupId |
string |
必須 |
サーバーグループの ID です。 |
sgp-atstuj3rtoptyui**** |
| Servers |
array<object> |
必須 |
バックエンドサーバーです。 説明
呼び出しごとに最大 200 台のバックエンドサーバーを指定できます。 |
|
|
object |
任意 |
バックエンドサーバーです。 |
||
| Port |
integer |
任意 |
バックエンドサーバーが使用するポートです。有効な値:
|
6081 |
| ServerId |
string |
必須 |
バックエンドサーバーの ID です。
|
i-bp67acfmxazb4p**** |
| ServerIp |
string |
任意 |
バックエンドサーバーの IP アドレスです。 |
192.168.XX.XX |
| ServerType |
string |
必須 |
バックエンドサーバーのタイプです。有効な値:
|
Ecs |
| DryRun |
boolean |
任意 |
ドライランを実行するかどうかを指定します。有効な値:
|
false |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークンです。 クライアントを使用してトークンを生成できますが、異なるリクエスト間でトークンが一意であることを確認する必要があります。トークンには ASCII 文字のみを含めることができます。 説明
このパラメーターを指定しない場合、システムはリクエストの RequestId を ClientToken として自動的に使用します。 RequestId はリクエストごとに異なる場合があります。 |
123e4567-e89b-12d3-a456-426655440000 |
レスポンスパラメーター
|
パラメーター |
タイプ |
説明 |
例 |
|
object |
レスポンスのデータ構造です。 |
||
| RequestId |
string |
リクエスト ID です。 |
54B48E3D-DF70-471B-AA93-08E683A1B45 |
例
成功レスポンス
JSONJSON
{
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B45"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Conflict.Server | The %s [%s] is conflict. | |
| 400 | Mismatch.ServerType | The %s is mismatched for %s and %s. | |
| 400 | ResourceInUse.IP | The specified resource of %s is in use. | |
| 400 | IllegalParam.ServerIp | The param of %s is illegal. | |
| 400 | IllegalParam.EcsNetworkType | The param of %s is illegal. | |
| 400 | DuplicatedParam.Server | The param of %s is duplicated. | |
| 400 | ResourceInUse.Eni | The specified resource of %s is in use. | |
| 400 | IncorrectStatus.Eni | The status of %s [%s] is incorrect. | |
| 400 | IllegalParam.IP | The param of %s is illegal. | |
| 400 | Mismatch.IP | The %s is mismatched for %s and %s. | |
| 400 | Mismatch.VpcId | The %s is mismatched for %s and %s. | |
| 400 | QuotaExceeded.ServerGroupServersNum | The quota of %s is exceeded for resource %s, usage %s/%s. | |
| 400 | QuotaExceeded.ServerGroupAzServersNum | The quota of %s is exceeded for resource %s, usage %s/%s. | |
| 400 | IncorrectStatus.ServerGroup | The status of %s [%s] is incorrect. | |
| 404 | ResourceNotFound.Eni | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.Eci | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.ServerGroup | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.Ecs | The specified resource of %s is not found. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。