doc-exports/docs/vpc/api-ref/vpc_port02_0005.html
Qin Ying, Fan 7e6f07b803 VPC API 20240320 version
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com>
Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
2024-09-05 12:25:23 +00:00

4.3 KiB

Deleting a Port

Function

This API is used to delete a port.

Restrictions

  • A port with device_owner set to a value other than neutron:VIP_PORT cannot be deleted.
  • A port with device_id specified cannot be deleted.

URI

DELETE /v2.0/ports/{port_id}

Table 1 describes the parameters.

Table 1 Parameter description

Parameter

Mandatory

Description

port_id

Yes

Specifies the port ID that uniquely identifies the port.

Request Parameters

None

Response Parameters

None

Example Request

DELETE https://{Endpoint}/v2.0/ports/2b098395-046a-4071-b009-312bcee665cb 

Example Response

None

Status Code

See Status Codes.

Error Code

See Error Codes.