You need to enable JavaScript to run this app.
导航
DeleteDirectConnectVirtualInterface
最近更新时间:2024.05.17 08:41:54首次发布时间:2022.03.25 07:38:20

调用DeleteDirectConnectVirtualInterface删除指定的虚拟接口实例。

调用说明

  • 待删除虚拟接口为专线网关的唯一虚拟接口时,需先调用DetachInstanceFromCen把该专线网关从云企业网卸载,然后再删除虚拟接口。
  • 待删除虚拟接口无静态路由条目、BGP邻居,若有请分别调用DeleteDirectConnectGatewayRoute删除静态路由条目、调用DeleteBgpPeer删除BGP邻居。
  • 若待删除的虚拟接口为共享虚拟接口,共享虚拟接口提供方(账号A)删除前须确保共享虚拟接口使用方(账号B)已拒绝共享虚拟接口、已删除共享虚拟接口、已接受共享虚拟接口但未关联BGP邻居和静态路由条目,否则将共享虚拟接口提供方(账号A)无法删除。

调试

请求参数

名称类型是否必选示例值描述
ActionStringDeleteDirectConnectVirtualInterface要执行的操作,取值为DeleteDirectConnectVirtualInterface。
VersionString2020-04-01API版本信息。
VirtualInterfaceIdStringdcv-7qthudw0ll6jmc****待删除虚拟接口实例的ID。您可调用DescribeDirectConnectVirtualInterfaces查询虚拟接口实例的ID。

返回数据

名称类型
示例值
描述
RequestIdString202111161611080102121461940900****请求ID。

请求示例

GET /?Action=DeleteDirectConnectVirtualInterface&Version=2020-04-01&VirtualInterfaceId=dcv-7qthudw0ll6jmc**** HTTP/1.1
Host: open.volcengineapi.com
ServiceName: directconnect
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202111161611080102121461940900****",
        "Action": "DeleteDirectConnectVirtualInterface",
        "Version": "2020-04-01",
        "Service": "directconnect",
        "Region": "cn-beijing"
    },
    "Result": {
    		"RequestId": "202111161611080102121461940900****"
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400InvalidDirectConnectVirtualInterface.InUseThe specified virtual interface is in use. If you are trying to delete the virtual interface, ensure that its routes have been deleted.指定的虚拟接口在占用中。如果尝试删除该虚拟接口,请确保其关联的所有路由已删除。
400InvalidDirectConnectVirtualInterface.InUseThe specified virtual interface is in use. If you are trying to delete the virtual interface, ensure that its BGP peers have been deleted.指定的虚拟接口在占用中。如果尝试删除该虚拟接口,请确保其关联的所有BGP邻居已删除。
400InvalidDirectConnectVirtualInterface.InUseThe specified virtual interface is in use. If you are trying to delete the virtual interface, ensure that its associated direct connect gateway has been detached from CEN.指定的虚拟接口在占用中。如果尝试删除该虚拟接口,请确保其关联的专线网关已从云企业网卸载。
400InvalidDirectConnectGateway.InvalidStatusThe specified direct connect gateway is not in the correct status for the request.指定的专线网关所处的状态无法响应该请求。
400InvalidDirectConnectVirtualInterface.InUseThe specified virtual interface is in use. If you are trying to delete the virtual interface, ensure that its associated direct connect gateway has been detached from Transit Router.指定的虚拟接口在使用中。如果尝试删除该虚拟接口,请确保其关联的专线网关不存在中转路由器网络实例连接。
400InvalidDirectConnectVirtualInterface.InvalidStatusThe specified direct connect virtual interface is not in the correct status for the request.指定的虚拟接口所处的状态无法响应该请求。
404InvalidDirectConnectVirtualInterface.NotFoundThe specified direct connect virtual interface does not exist.指定的虚拟接口不存在。