NSX-T Data Center REST API
Create service segment
A service segment with the service-segment-id is created.Modification of service segment is not supported.
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/service-segments/<service-segment-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ServiceSegment+
Example Request:
PUT https://<policy-mgr>/policy/api/v1/infra/segments/service-segments/service-segment-1 { "display_name": "service-segment-1", "resource_type": "ServiceSegment", "transport_zone_path": "/infra/sites/default/enforcement-points/default/transport-zones/be553b11-040b-4a51-870d-c32fced0ba7d" }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ServiceSegment+