取得與服務鏈結相關聯的服務路徑清單,該清單會套用至 NSX Edge 的東西向網路自我檢查服務或服務鏈結。

瞭解與服務鏈結識別碼相關聯的服務路徑。

必要條件

程序

  • 執行 API 命令:
    GET https://<policy-mgr>/policy/api/v1/infra/service-chains/<service-chain-id>/service-paths
    
    Sample 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
    	}