Policy > Networking > Connectivity > Segment > Service Segments

Create a 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) or VMware NSX-T.

Request:

Method:
PATCH
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:

PATCH https://<policy-mgr>/policy/api/v1/infra/segments/service-segments/service-segment-with-invalid-lr-path { "display_name": "service-segment-1", "resource_type": "ServiceSegment", "transport_zone_path": "/infra/sites/default/enforcement-points/default/transport-zones/be553b11-040b-4a51-870d-c32fced0ba7d", "lr_paths": [ "abc" ] }

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: