Policy > Security > Service Insertion > Service Chains

Create or update service chain

Create or update Service chain representing the sequence in which 3rd party
services must be consumed.
This API is only available when using VMware NSX-T.

Request:

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

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/service-chain/SC-1 { "resource_type" : "PolicyServiceChain", "display_name" : "PSC_2 Changed", "description" : "PSC_2 Desc Changed", "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", "_revision": 0 }

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_2", "display_name": "PSC_2 Changed Now", "description": "PSC_2 Desc Changed", "path": "/infra/service-chains/PSC_2", "relative_path": "PSC_2", "parent_path": "/infra/service-chains/PSC_2", "marked_for_delete": false, "_create_user": "admin", "_create_time": 1546597986596, "_last_modified_user": "admin", "_last_modified_time": 1546598050671, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 1 }

Required Permissions:

crud

Feature:

policy_ni

Additional Errors: