Policy > Security > Service Insertion > Service Chains

Read service paths for a given service chain

This API can be used to read service paths for a 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>/service-paths
Request Headers:
n/a
Query Parameters:
PolicySIEnforcementPointRequestParameters+
Request Body:
n/a

Example Request:

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

Successful Response:

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

Example Response:

{ "results": [{ "service_path_id": 38, "service_chain_uuid": "85677e98-a3a1-4989-9c60-eeb6a04515bf", "service_chain_id": 2, "forward_path": { "unidir_service_path_id": 75, "host_cross_count": 0, "is_active": true, "in_maintenance_mode": false, "hops": [{ "mac_address": "00:50:56:83:e9:0f", "vif": "4d7bfaa9-4770-435a-99de-8b9756ac025a", "is_active_from_mp": true, "is_active_from_ccp": true, "is_active_from_dp": true, "in_maintenance_mode": false, "nsh_liveness_support": false, "can_decrement_si": false, "action": "REDIRECT" }] }, "reverse_path": { "unidir_service_path_id": 76, "host_cross_count": 0, "is_active": true, "in_maintenance_mode": false, "hops": [{ "mac_address": "00:50:56:83:e9:0f", "vif": "4d7bfaa9-4770-435a-99de-8b9756ac025a", "is_active_from_mp": true, "is_active_from_ccp": true, "is_active_from_dp": true, "in_maintenance_mode": false, "nsh_liveness_support": false, "can_decrement_si": false, "action": "REDIRECT" }] } }], "result_count": 1 }

Required Permissions:

read

Feature:

policy_ni

Additional Errors: