Policy > Security > Service Insertion > Service Chains

List service chains

List all the service chains available for service insertion
This API is only available when using VMware NSX-T.

Request:

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

Example Request:

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

Successful Response:

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

Example Response:

{ "results": [ { "forward_path_service_profiles": [ "/infra/service-references/SR_1/service-profiles/SP_1", "/infra/service-references/SR_1/service-profiles/SP_2" ], "reverse_path_service_profiles": [ "/infra/service-references/SR_1/service-profiles/SP_2", "/infra/service-references/SR_1/service-profiles/SP_1" ], "service_segment_path": [ "/infra/segments/service-segments/SS_1" ], "failure_policy": "ALLOW", "path_selection_policy": "ANY", "resource_type": "PolicyServiceChain", "id": "PSC_1", "display_name": "PSC_1", "description": "PSC_1 Desc", "path": "/infra/service-chains/PSC_1", "relative_path": "PSC_1", "parent_path": "/infra/service-chains/PSC_1", "marked_for_delete": false, "_create_user": "admin", "_create_time": 1546597502506, "_last_modified_user": "admin", "_last_modified_time": 1546597502506, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 } ], "result_count": 1, "sort_by": "display_name", "sort_ascending": true }

Required Permissions:

read

Feature:

policy_ni

Additional Errors: