Management Plane API > Security > Services > Firewall

Create a New Empty Section

Creates new empty firewall section in the system.

Request:

Method:
POST
URI Path(s):
/api/v1/firewall/sections
Request Headers:
n/a
Query Parameters:
FirewallInsertParameters+
Request Body:
FirewallSection+

Example Request:

POST https://<nsx-mgr>/api/v1/firewall/sections { "display_name": "web-switch", "section_type" : "LAYER2", "stateful" : false }

Successful Response:

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

Example Response:

{ "resource_type": "FirewallSection", "id": "dd8afb22-df12-4b37-aea2-7f0bbf7cdb37", "display_name": "web-switch", "section_type": "LAYER2", "is_default": false, "stateful": false, "rule_count": 0, "locked": false, "_last_modified_user": "admin", "_system_owned": false, "_last_modified_time": 1445894697038, "_create_user": "admin", "_create_time": 1445894697038, "_revision": 0 }

Required Permissions:

crud

Feature:

firewall_general

Additional Errors: