Policy > Networking > Connectivity > Segments > Ports

Delete an infra segment port

Delete an infra segment port by giving ID. Please note that this operation will not delete
the segment port from vCenter Server if the port was connected to a Virtual Machine.
Please connect Virtual Machine to another network for the segment port to be deleted
from vCenter Server.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.

Request:

Method:
DELETE
URI Path(s):
/policy/api/v1/infra/segments/{segment-id}/ports/{port-id}
/policy/api/v1/global-infra/segments/{segment-id}/ports/{port-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/segments/{segment-id}/ports/{port-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

DELETE https://<policy-mgr>/policy/api/v1/infra/segments/web-tier/ports/port1

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_segment

Additional Errors: