Policy > Networking > Connectivity > Segment > Service Segments

List Service Segments

Paginated list of all Service Segments

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/segments/service-segments
Request Headers:
n/a
Query Parameters:
ServiceSegmentListRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/segments/service-segments

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ServiceSegmentListResult+

Example Response:

{ "results": [ { "transport_zone_path": "/infra/sites/default/enforcement-points/default/transport-zones/be553b11-040b-4a51-870d-c32fced0ba7d", "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": 1543227416946, "_last_modified_user": "admin", "_last_modified_time": 1543227416946, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 } ], "result_count": 1, "sort_by": "display_name", "sort_ascending": true }

Required Permissions:

read

Feature:

policy_segment

Additional Errors: