• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Interfaces
  6. Deleting an NIC

Deleting an NIC

Function Description

This interface is used to delete an NIC.

Native code adjustment

In OpenStack Juno, when the NIC of an ECS is deleted, all ports attached to the ECS will be deleted. In OpenStack Mitaka, when the NIC of an ECS is deleted, ports that are created by users during the ECS creation cannot be deleted.

NOTE:

This function can be enabled or disabled, and supports the native processing mode in OpenStack Mitaka and the compatibility mode in OpenStack Juno. The native processing mode in OpenStack Mitaka is used by default. During upgrades, the compatibility mode in OpenStack Juno is used.

Interface Format

Method

URI

Description

DELETE

/v2/{tenant_id}/servers/{server_id}/os-interface/{attachment_id}

/v2.1/{tenant_id}/servers/{server_id}/os-interface/{attachment_id}

Deletes a NIC.

Restrictions

  • ELB application restrictions

    If an ECS serves as the backend ELB server, the ECS does not support uninstallation of the primary NIC. If users need to uninstall its primary NIC, they need to remove the ECS from the backend ELB servers.

    If the users delete the primary NIC before removing the ECS from the ELB backend servers, this server will become unavailable. If this happens, remove the ECS from the backend ELB servers.

  • If an ECS has multiple NICs, users must uninstall other NICs and then uninstall the primary NIC.

Expanded Interface

N/A

Request Parameter

N/A

Response Parameter

N/A

Request Example

DELETE /v2/e72b9b77c6b949da851487dfbc0a7ca0/servers/0ee24b9b-2410-402b-a654-b3ecf53e63e0/os-interface/3cdd8698-4ea5-4965-bbe3-6318c7ffe0bf
DELETE /v2.1/e72b9b77c6b949da851487dfbc0a7ca0/servers/0ee24b9b-2410-402b-a654-b3ecf53e63e0/os-interface/3cdd8698-4ea5-4965-bbe3-6318c7ffe0bf

Response Example

N/A

Returned Values

For details, see section General Request Returned Values.

Error Code

Table 1 Task errors

Error Code

Description

404

Instance could not be found.

The target ECS does not exist.