カスタムルートテーブルを同じ VPC 内の vSwitch に関連付けます。
操作説明
AssociateRouteTable 操作は非同期です。システムはリクエスト ID を返しますが、ルートテーブルはすぐには関連付けられません。関連付けタスクはバックグラウンドで続行されます。 DescribeVSwitchAttributes を呼び出して、ルートテーブルの関連付けステータスをクエリできます。
vSwitch が Pending 状態の場合、ルートテーブルは関連付け中です。
vSwitch が Available 状態の場合、ルートテーブルは正常に関連付けられています。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:AssociateRouteTable |
update |
*VSwitch
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
vSwitch に関連付けるルートテーブルが属する VPC のリージョン ID。 DescribeRegions 操作を呼び出して、リージョン ID をクエリできます。 |
cn-hangzhou |
| RouteTableId |
string |
必須 |
vSwitch に関連付けるルートテーブルの ID。 |
vtb-bp145q7glnuzdvzu2**** |
| VSwitchId |
string |
必須 |
ルートテーブルに関連付ける vSwitch の ID。 |
vsw-25ncdvfaue4**** |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークン。 クライアントでパラメーター値を生成して、異なるリクエスト間で値が一意になるようにできます。ClientToken パラメーターは ASCII 文字のみをサポートします。 説明
このパラメーターを指定しない場合、システムは API 呼び出しの RequestId を ClientToken として自動的に使用します。各 API 呼び出しの RequestId は異なる場合があります。 |
02fb3da4-130e-11e9-8e44-0016e04115b |
| RegionId |
string |
必須 |
vSwitch に関連付けるルートテーブルが属する VPC のリージョン ID。 DescribeRegions を呼び出してリージョン ID をクエリできます。 |
cn-hangzhou |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
DC668356-BCB4-42FD-9BC3-FA2B2E04B634 |
例
成功レスポンス
JSONJSON
{
"RequestId": "DC668356-BCB4-42FD-9BC3-FA2B2E04B634"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | OperationDenied.CloudBoxVbrEntryExist | The operation is not allowed because the routing table has a route entry for the next hop to the cloud box VBR. | ルートテーブルにネクストホップが CloudBox VBR をポイントするルートエントリが含まれているため、指定された操作は許可されていません。 |
| 400 | OperationDenied.OtherCloudBoxVbrEntryExist | The operation is not allowed because the routing table has a route entry for the next hop that points to a VBR other than this cloud box. | ルートテーブルにネクストホップがこの CloudBox に属さない VBR をポイントするルートエントリが含まれているため、指定された操作は許可されていません。 |
| 400 | ResourceAlreadyAssociated.RouteTable | The resource has already associated with a routetable. | |
| 400 | OperationDenied.AssociateGatewayRouteTable | The operation is not allowed because gateway route tables cannot be bound to a vSwitch. | vSwitch をゲートウェイルートテーブルに関連付けることはできません。 |
| 400 | OperationDenied.SwitchToSystemRouteTable | The associated route tables cannot be directly changed to system route tables. | 関連付けられたルートテーブルをシステムルートテーブルに直接切り替えることはできません。 |
| 400 | ResourceNotFound.VSwitch | The specified resource of VSwitch is not found. | 指定された vSwitch インスタンスは存在しません。 |
| 400 | InvalidRouteTableId.NotFound | Specified route table does not exist. | |
| 400 | OperationDenied.LocalRouteEntryModified | The next hop of a local route is modified. | ローカルルートのネクストホップは変更できません。 |
| 400 | MissingParam.VSwitchId | The parameter VSwitchId is missing. | VSwitchId パラメーターがありません。 |
| 400 | InvalidRegionId.NotFound | Specified value of RegionId is not supported. | |
| 400 | InvalidParameter.Action | This vpc feature is not supported in this region | |
| 400 | IncorrectVSwitchStatus | The current status of the virtual switch does not support this operation. | |
| 400 | Forbidden.VSwitchAlreadyAssociatedRouteTable | The specified virtual switch already associates route table. | |
| 400 | Forbidden.NotInSameVpc | The specified virtual switch and route table are not in the same VPC. | |
| 400 | IncorrectStatus.RouteTable | The status of the specified route table is incorrect. | |
| 404 | InvalidRouteTableId.NotFound | Specified route table does not exist. | |
| 404 | InvalidVSwitchId.NotFound | Specified VSwitch does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。