• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. NIC Management
  6. Deleting a NIC from an ECS

Deleting a NIC from an ECS

Function

This API is used to delete a single NIC from the ECS based on the specified port ID.

Constraints

The primary NIC of an ECS has routing rules configured and cannot be deleted.

URI

DELETE /v2.1/{project_id}/servers/{server_id}/os-interface/{id}

Table 1 describes the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

server_id

Yes

Specifies the ECS ID.

id

Yes

Specifies the port ID of the NIC.

NOTE:

When the ID is the same as the ECS primary NIC ID, the system will return error code 403.

Request

N/A

Response

N/A

Returned Values

See General Request Returned Values.