Policy > Networking > Connectivity > Segments > Service Segments

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+

Example Response:

{ "resource_type": "ServiceSegment", "id": "service-segment-1", "display_name": "service-segment-1", "path": "/infra/segments/service-segments/service-segment-1", "relative_path": "service-segment-1", "parent_path": "/infra/segments/service-segments/service-segment-1", "marked_for_delete": false, "_create_user": "admin", "_create_time": 1543227599024, "_last_modified_user": "admin", "_last_modified_time": 1543227599024, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_si

Additional Errors: