仮想非公開クラウド (VPC) 接続に関連付けられているゾーンと vSwitch を変更します。
操作説明
-
When you add a zone and a vSwitch for a VPC connection, make sure that the vSwitch has at least one idle IP address. When you modify the zones and vSwitches of a VPC connection, the Enterprise Edition transit router creates an elastic network interface (ENI) in the vSwitch. The ENI occupies one IP address in the vSwitch. The ENI forwards traffic between the VPC and the Enterprise Edition transit router.
-
UpdateTransitRouterVpcAttachmentZones is an asynchronous operation. After you send a request, the system returns a request ID and runs the task in the background. You can call the ListTransitRouterVpcAttachments operation to query the status of a VPC connection.
If a VPC connection is in the Modifying state, the VPC connection is being modified. You can query the VPC connection but cannot perform other operations.
If a VPC connection is in the Attached state, the VPC connection is modified.
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cen:UpdateTransitRouterVpcAttachmentZones |
update |
*TransitRouterVpcAttachment
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、異なるリクエスト間でトークンが一意であることを確認する必要があります。トークンには ASCII 文字のみを使用できます。 説明
このパラメーターを設定しない場合、ClientToken は RequestId の値に設定されます。各 API リクエストの RequestId の値は異なる場合があります。 |
123e4567-e89b-12d3-a456-42665544**** |
| DryRun |
boolean |
任意 |
ドライランを実行するかどうかを指定します。有効な値:
|
false |
| TransitRouterAttachmentId |
string |
必須 |
VPC 接続の ID。 |
tr-attach-9bbqyygouv4cpn**** |
| AddZoneMappings |
array<object> |
任意 |
VPC 接続に追加するゾーンと vSwitch。 |
|
|
object |
任意 |
The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call. |
||
| VSwitchId |
string |
任意 |
The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.
|
vsw-wz988dda8ldm4uvmx**** |
| ZoneId |
string |
任意 |
The ID of the zone where the vSwitch that you want to add to the VPC connection is deployed. You can specify at most 10 vSwitches in each call. |
cn-hangzhou-h |
| RemoveZoneMappings |
array<object> |
任意 |
VPC 接続から削除するゾーンと vSwitch。 |
|
|
object |
任意 |
The zones and vSwitches that you want to remove from the VPC connection. You can specify at most 10 pairs of zones and vSwitches in each call. |
||
| VSwitchId |
string |
任意 |
The ID of the vSwitch that you want to remove from the VPC connection. You can remove at most 10 vSwitches from a VPC in each call. |
vsw-wz9f5izl6wshndmta**** |
| ZoneId |
string |
任意 |
The ID of the zone where the vSwitch that you want to remove from the VPC connection is deployed. |
cn-hangzhou-i |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
The response. |
||
| RequestId |
string |
The ID of the request. |
595AE52F-49FF-5788-A677-0DD1467941A1 |
例
成功レスポンス
JSONJSON
{
"RequestId": "595AE52F-49FF-5788-A677-0DD1467941A1"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IllegalParam.ZoneId | The specified ZoneId is illegal. | |
| 400 | IncorrectStatus.TransitRouterAttachment | The status of TransitRouterAttachment is incorrect. | |
| 400 | IllegalParam.VSwitchId | VSwitchId is illegal. | |
| 400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | |
| 400 | OperationUnsupported.ServiceMode | The specified TransitRouter does not support the operation. | |
| 400 | IllegalParam.AddOrRemoveZoneMappings | The specified AddZoneMappings or RemoveZoneMappings are illegal. | |
| 400 | IncorrectStatus.Vpc | The resource is not in a valid state for the attachment operation. | |
| 400 | OperationDenied.RouteEntryOnEni | Operation is failed because there is at least one route entry which next hop is the specified eni. | |
| 400 | IncorrectStatus.VpcRouteEntry | The resource is not in a valid state for the attachment operation. | |
| 400 | IncorrectStatus.VpcSwitch | The resource is not in a valid state for the attachment operation. | |
| 400 | OperationUnsupported.TransitRouterType | The specified TransitRouterType does not support the operation. | |
| 400 | InsufficientIpAddr.vsw | Insufficient available IP addresses in the vSwitch. | |
| 400 | OperationFailed.VSwitchIpv6CidrNotAllocated | The specified vswitch does not have IPv6 address allocated. | |
| 400 | InvalidTransitRouterMode.NeedUpgrade | TransitRouter need to upgrade. | |
| 400 | OperationInvalid.EniReferencedIPv6RouteEntryExisted | Operation is failed because there is at least one route entry(IPv6) which next hop is network interface that the specified attachment referenced. | |
| 400 | InvalidParameter | Invalid parameter. | |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | |
| 404 | IllegalParam.ZoneId | The specified ZoneId is illegal. | |
| 404 | InvalidVSwitchId.NotFound | The specified VSwitchId is not found. | |
| 409 | IncorrectStatus.VpcSwitch | The resource is not in a valid state for the attachment operation. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。