Policy > Security > Service Insertion > Service Chains

Read service chain

This API can be used to read service chain with given service-chain-id. This API is only available when using VMware NSX-T.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/service-chains/<service-chain-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

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

Successful Response:

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

Example Response:

{ "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 }

Required Permissions:

read

Feature:

policy_ni

Additional Errors: