• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. OpenStack Nova APIs
  5. NIC Management
  6. Deleting a NIC from an ECS

Deleting a NIC from an ECS

Function Description

This interface 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/{project_id}/servers/{server_id}/os-interface/{id}{?reserve_port}

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

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.

reserve_port

No

Indicates whether to retain the NIC port after the NIC is unbound.

True: indicates that the port is reserved.

False: indicates that the port is deleted. This is the default value.

Request

N/A

Response

N/A

Returned Values

See General Request Returned Values.