NSX-T Data Center REST API

Create a New Empty Section (Deprecated)

Creates new empty firewall section in the system.
Deprecated:
Use the following Policy API -
PUT|PATCH /policy/api/v1/infra/domains/<domain-id>/security-policies/<security-policy-id>

Request:

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

Example Request:

{ "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: