vSwitch を削除します。
操作説明
この操作を呼び出して vSwitch を削除する前に、以下の項目にご注意ください。
-
vSwitch を削除する前に、VPC 内のすべてのリソース(vSwitch、クラウドサービスインスタンス、ルーターインターフェイス、HaVip など)をリリースまたは移動してください。
-
Available 状態の vSwitch のみ削除できます。
-
vSwitch が属する VPC で vSwitch またはルートの作成または削除が行われている場合、その vSwitch は削除できません。
-
DeleteVSwitch 操作は非同期です。リクエストを送信すると、システムはリクエスト ID を返しますが、vSwitch はまだ削除されていません。削除タスクはバックグラウンドで実行中です。 DescribeVSwitchAttributes を呼び出して、vSwitch の削除ステータスをクエリできます。
vSwitch が Pending 状態の場合、vSwitch は削除中です。
指定された vSwitch が見つからない場合、vSwitch は削除済みです。
-
DeleteVSwitch 操作では、同じ vSwitch の同時削除はサポートされていません。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:DeleteVSwitch |
delete |
*VSwitch
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| VSwitchId |
string |
必須 |
削除する vSwitch の ID。 |
vsw-asdfjlna**** |
| RegionId |
string |
任意 |
削除する vSwitch のリージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストをクエリできます。 |
cn-hangzhou |
| DryRun |
boolean |
任意 |
ドライランを実行するかどうかを指定します。有効な値:
|
false |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答パラメーター。 |
||
| RequestId |
string |
リクエスト ID。 |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
例
成功レスポンス
JSONJSON
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | OperationDenied.OtherSubnetProcessing | other subnet is processing. | 別のサブネットが操作中であるため、vSwitch を削除できません。 |
| 400 | IncorrectVSwitchStatus | vpc subnet is in middle status. | |
| 400 | DependencyViolation | Resources deployed in the vSwitch have not been deleted. | 指定されたオブジェクトには依存リソースがあります。 |
| 400 | IncorrectRouteEntryStatus | Some route entry status blocked this operation. | |
| 400 | DependencyViolation.HaVip | VSwitch cannot be deleted when there are some HaVip dependent with it. | 高可用性仮想 IP アドレス (HaVip) が関連付けられているため、vSwitch を削除できません。 |
| 400 | DependencyViolation.RouteTable | VSwitch cannot be deleted when associated with route table | |
| 400 | MissingParameter | Miss mandatory parameter. | |
| 400 | TaskConflict | The operation is too frequent, TaskConflict. | 操作が頻繁すぎます。しばらく待ってからもう一度お試しください。 |
| 400 | DependencyViolation.SNAT | The vswitch cannot be deleted when used by snat. | vSwitch が SNAT ルールで使用されているため、削除できません。 |
| 400 | DeleteVSwitch.IncorrectStatus.cbnStatus | Current CBN status does not support this operation. | 現在の CEN ステータスでは vSwitch の削除操作はサポートされていません。 |
| 400 | AttrMismatching.NaclAndBindInstance | The network acl and resource not in same vpc. | |
| 400 | InvalidResource.NotBinding | The resource has not been binded. | |
| 400 | DependencyViolation.SnatEntry | VSwitch cannot be deleted when snat entry exist. | |
| 400 | DependencyViolation.NetworkAcl | VSwitch cannot be deleted when network acl exist. | ネットワーク ACL が存在するため、vSwitch を削除できません。 |
| 400 | DependencyViolation.EnhancedNatgw | VSwitch cannot be deleted when natgw exist. | NAT ゲートウェイが存在するため、vSwitch を削除できません。 |
| 400 | DependencyViolation.ResourceShare | VSwitch cannot be deleted when resource share exist. | |
| 400 | OperationFailed.SystemBusy | Operation failed because system is busy. | システムが混雑しています。後でもう一度お試しください。 |
| 400 | DependencyViolation.MulticastDomain | VSwitch cannot be deleted when associated with multicast domain. | マルチキャストドメインに参加しているため、vSwitch を削除できません。 |
| 400 | DependencyViolation.VSwitchCidrReservation | VSwitch cannot be deleted when vswitch cidr reservation exist. | vSwitch で使用中の VSwitchCidrReservation があるため、削除できません。 |
| 400 | DependencyViolation.CloudService | VSwitch cannot be deleted when uesd by cloud service. | vSwitch がクラウドサービスによって使用されているため、削除できません。クラウドサービスのシナリオを確認してください。 |
| 400 | InvalidVSwitchId.NotFound | VSwitch not exist. | |
| 400 | OperationFailed.Ipv6InstanceExist | Operation failed because vswitch has ipv6 instance. | vSwitch に IPv6 インスタンスが存在します。 |
| 400 | DependencyViolation.Ipv6Address | The specified resource of %s depends on %s, so the operation cannot be completed. | 指定されたリソースは他のリソースから依存されています。現在の操作は許可されていません。 |
| 400 | DependencyViolation.%s | The specified resource of [%s] depends on [%s], so the operation cannot be completed. | 操作中のリソース [%s] は [%s] に依存しています。この操作を実行する前に、依存リソースを削除してください。 |
| 400 | Forbidden.RegionNotFound | Specified instance is not found during access authentication. | 現在のリージョンはサポートされていません。 |
| 400 | IncorrectStatus | Vswtich status not stable. | |
| 400 | DependencyViolation.RouterInterface | Specified object has dependent resources RouterInterface. | |
| 400 | InvalidRegionId.NotFound | The specified region is not found. | パラメーターが無効です。 |
| 400 | DependencyViolation.NATGW | Nat gateway exists in the VSwitch, so the VSwitch cannot be deleted. | vSwitch 内に未削除の NAT ゲートウェイが残っているため、削除できません。まず vSwitch に関連付けられた NAT ゲートウェイを削除してください。 |
| 404 | IncorrectVSwitchId | Specified vSwtich instance is not found during access authentication. | 権限検証中に、指定された仮想スイッチ (vSwitch) インスタンスが見つかりませんでした。 |
| 404 | InvalidVSwitchId.NotFound | VSwitch not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。