ModifyCustomerGatewayAttribute 操作を呼び出して、カスタマーゲートウェイの構成を変更します。
操作説明
-
ModifyCustomerGatewayAttribute 操作を呼び出す際、AuthKey パラメーターが空でない場合、この操作は非同期です。システムはまずカスタマーゲートウェイ情報を返しますが、変更タスクがまだバックグラウンドで実行中のため、構成はまだ変更されていません。 DescribeVpnGateway を呼び出して、カスタマーゲートウェイ構成の変更ステータスをクエリできます:
VPN ゲートウェイインスタンスが updating 状態の場合、カスタマーゲートウェイ構成は変更中です。
VPN ゲートウェイインスタンスが アクティブな 状態の場合、カスタマーゲートウェイ構成は変更済みです。
-
ModifyCustomerGatewayAttribute 操作を呼び出す際、AuthKey パラメーターが空の場合、この操作は同期です。
-
ModifyCustomerGatewayAttribute 操作は、同じカスタマーゲートウェイの構成に対する同時変更をサポートしていません。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:ModifyCustomerGatewayAttribute |
update |
*CustomerGateway
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
カスタマーゲートウェイのリージョン ID。 DescribeRegions 操作を呼び出して、リージョン ID をクエリできます。 |
cn-shanghai |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、異なるリクエスト間でトークンが一意であることを確認する必要があります。ClientToken の値には ASCII 文字のみを含めることができます。 説明
このパラメーターを指定しない場合、システムは API リクエストの RequestId を ClientToken として自動的に使用します。RequestId は API の呼び出しごとに異なる場合があります。 |
02fb3da4-130e-11e9-8e44**** |
| CustomerGatewayId |
string |
必須 |
カスタマーゲートウェイのインスタンス ID。 |
cgw-bp1pvpl9r9adju6l5**** |
| Name |
string |
任意 |
カスタマーゲートウェイの名前。 名前は 1~100 文字で、 |
nametest |
| Description |
string |
任意 |
カスタマーゲートウェイの説明。 説明は 1~100 文字で、 |
desctest |
| AuthKey |
string |
任意 |
オンプレミスデータセンターのゲートウェイデバイスのボーダーゲートウェイプロトコル (BGP) ルーティングプロトコルの認証キー。 キーは 1~64 文字で、ASCII 文字のみを含めることができます。スペース、中国語文字、または半角疑問符 (?) を含めることはできません。 |
AuthKey**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答パラメーター。 |
||
| RequestId |
string |
リクエスト ID。 |
8AA5CE21-2E6A-4530-BDF5-F055849476E6 |
| IpAddress |
string |
オンプレミスデータセンターのゲートウェイデバイスのパブリック IP アドレス。 |
139.32.XX.XX |
| Description |
string |
カスタマーゲートウェイの説明。 |
desctest |
| CustomerGatewayId |
string |
カスタマーゲートウェイのインスタンス ID。 |
cgw-bp1pvpl9r9adju6l5**** |
| CreateTime |
integer |
カスタマーゲートウェイが作成されたタイムスタンプ。 |
1492747187000 |
| Name |
string |
カスタマーゲートウェイの名前。 |
nametest |
| ResourceGroupId |
string |
カスタマーゲートウェイが属するリソースグループの ID。 ListResourceGroups 操作を呼び出して、リソースグループ情報をクエリできます。 |
rg-acfmzs372yg**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "8AA5CE21-2E6A-4530-BDF5-F055849476E6",
"IpAddress": "139.32.XX.XX",
"Description": "desctest",
"CustomerGatewayId": "cgw-bp1pvpl9r9adju6l5****",
"CreateTime": 1492747187000,
"Name": "nametest",
"ResourceGroupId": "rg-acfmzs372yg****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidName | The name is not valid | |
| 400 | InvalidDescription | The description is not valid | |
| 400 | OperationDenied.MissingAsn | The autonomous system number of the customer gateway is mandatory when BGP authentication key is specified. | |
| 400 | InvalidAuthkey.Malformed | The specified BGP authentication key (%s) is malformed. | |
| 400 | OperationDenied.VpnFinancialLocked | The associated VPN gateway is financially locked. You cannot update the attributes of the customer gateway. | |
| 400 | OperationDenied.VpnConfiguring | The associated VPN gateway is being configured. You cannot update the attributes of the customer gateway. | |
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | |
| 403 | Forbidden | User not authorized to operate on the specified resource. | |
| 404 | InvalidCustomerGatewayInstanceId.NotFound | The specified customer gateway instance id does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。