Management Plane API > Security > Services > Service Insertion

Create a New Empty Section

Creates new empty Service Insertion section in the system.

Request:

Method:
POST
URI Path(s):
/api/v1/serviceinsertion/sections
Request Headers:
n/a
Query Parameters:
ServiceInsertionInsertParameters+
Request Body:
ServiceInsertionSection+

Example Request:

POST https://<nsx-mgr>/api/v1/serviceinsertion/sections { "display_name": "web-switch", "section_type" : "L3REDIRECT", "stateful" : false "applied_tos": [ { "target_display_name": "Tier0-LR-1", "is_valid": true, "target_type": "LogicalRouter", "target_id": "1d9fb5cb-0344-4d7f-899a-afd93276899f" } ], }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
ServiceInsertionSection+

Example Response:

{ "resource_type": "ServiceInsertionSection", "id": "dd8afb22-df12-4b37-aea2-7f0bbf7cdb37", "display_name": "web-switch", "applied_tos": [ { "target_display_name": "Tier0-LR-1", "is_valid": true, "target_type": "LogicalRouter", "target_id": "1d9fb5cb-0344-4d7f-899a-afd93276899f" } ], "section_type": "L3REDIRECT", "is_default": false, "stateful": false, "rule_count": 0, "_last_modified_user": "admin", "_system_owned": false, "_last_modified_time": 1445894697038, "_create_user": "admin", "_create_time": 1445894697038, "_revision": 0 }

Required Permissions:

crud

Feature:

service_insertion

Additional Errors: