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 操作を呼び出して、リージョン ID をクエリできます。 |
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. | |
| 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. | |
| 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. | |
| 400 | DeleteVSwitch.IncorrectStatus.cbnStatus | Current CBN status does not support this operation. | |
| 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. | |
| 400 | DependencyViolation.EnhancedNatgw | VSwitch cannot be deleted when natgw exist. | |
| 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. | |
| 400 | DependencyViolation.VSwitchCidrReservation | VSwitch cannot be deleted when vswitch cidr reservation exist. | |
| 400 | DependencyViolation.CloudService | VSwitch cannot be deleted when uesd by cloud service. | |
| 400 | InvalidVSwitchId.NotFound | VSwitch not exist. | |
| 400 | OperationFailed.Ipv6InstanceExist | Operation failed because vswitch has ipv6 instance. | |
| 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. | |
| 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. | |
| 404 | IncorrectVSwitchId | Specified vSwtich instance is not found during access authentication. | |
| 404 | InvalidVSwitchId.NotFound | VSwitch not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。