You need to enable JavaScript to run this app.
导航

DeleteNetworkInterface

最近更新时间2024.04.11 14:27:11

首次发布时间2021.07.29 14:11:54

调用 DeleteNetworkInterface 接口,删除辅助网卡。

调用说明

  • 辅助网卡未挂载至云服务器实例。
    您可调用 DescribeNetworkInterfaces 接口,查看是否挂载至云服务器实例,若已挂载,可调用DetachNetworkInterface接口,将其卸载。
  • 主网卡不支持调用本接口删除,当云服务器删除时,其随云服务器删除。
  • 火山引擎官方服务网卡不支持调用本接口删除。当其所属的云资源删除时,随其一同删除。
  • 已开启随云服务器实例删除的辅助网卡,当云服务器删除时,随其一同删除。

    说明

    辅助网卡开启随云服务器实例删除的功能正在邀测中,如需试用,请联系客户经理申请,申请成功后才可使用该功能和可见相关文档。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringDeleteNetworkInterface要执行的操作。取值:DeleteNetworkInterface。
VersionString2020-04-01API版本信息,取值为:2020-04-01。

NetworkInterfaceId

String

eni-bp1fgnh68xyz9****

待删除辅助网卡的ID。
您可以调用 DescribeNetworkInterfaces 接口,查询网卡的ID。

返回数据

参数名称
类型
示例值
描述
RequestIdString2021062415303301022514515207C4****请求ID。

请求示例

GET /?Action=DeleteNetworkInterface&Version=2020-04-01&NetworkInterfaceId=eni-bp1fgnh68xyz9**** HTTP/1.1
Host: open.volcengineapi.com
Service: vpc
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "DeleteNetworkInterface",
        "Version": "2020-04-01",
        "Service": "vpc",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "2021062415303301022514515207C4****"
    }
}

错误码

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

HttpCode
错误码
错误信息
描述
400InvalidEni.InvalidStatusThe specified elastic network interface is not in the correct status for the request.指定的弹性网卡所处的状态无法响应该请求。
400InvalidEip.InvalidStatusThe specified elastic ip is not in the correct status for the request.指定的弹性公网IP所处的状态无法响应该请求。
400QuotaExceeded.SecurityGroupIpThe number of IP addresses bound to the security group exceeded quota.已达到安全组可绑定IP地址的数量上限。
403ForbiddenYou are not authorized to perform operations on ESI related resources.无权限操作弹性预约实例关联资源。
403ForbiddenYou are not authorized to perform operations on the specified elastic network interface. The specified elastic network interface is a service-managed elastic network interface.无权限对指定弹性网卡进行操作。指定的弹性网卡为云产品托管的弹性网卡。
404InvalidEniId.NotFoundThe specified elastic network interface does not exist.指定的弹性网卡不存在。