NSX-T Data Center REST API
Create or update an infra segment port
Create an infra segment port if it does not exist based on the IDs, or update existing portinformation by replacing the port object already exists.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.
Request:
Method:
PUT
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/global-infra/segments/<segment-id>/ports/<port-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
SegmentPort+
Example Request:
PUT https://<policy-mgr>/policy/api/v1/infra/segments/web-tier/ports/port1 { "address_bindings": [ { "ip_address":"1.1.1.1", "mac_address":"aa:bb:cc:dd:ee:ff" }, { "ip_address":"1.1.1.2", "mac_address":"aa:bb:cc:dd:ee:f1" } ], "tags": [ {"tag":"port-1 tag 1 from Policy","scope":"Policy"} ] }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
SegmentPort+