Management Plane API > Security > Services > Firewall

Lock a section

Lock a section

Request:

Method:
POST
URI Path(s):
/api/v1/firewall/sections/<section-id>?action=lock
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
FirewallSectionLock+

Example Request:

POST https://<nsx-mgr>/api/v1/ firewall/sections/2111d18f-27ba-4f19-a51d-2173c3972410?action=lock { "comments": "Lock the Section", "section_revision": 1 }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
FirewallSection+

Example Response:

{ "resource_type": "FirewallSection", "id": "2111d18f-27ba-4f19-a51d-2173c3972410", "display_name": "Layer3 Section with Rules", "section_type": "LAYER3", "is_default": false, "stateful": true, "rule_count": 1, "locked": true, "comments": "Locked the section", "lock_modified_by": "admin", "lock_modified_time": "1446241866900", "_create_time": 1446241866925, "_last_modified_user": "admin", "_system_owned": false, "_last_modified_time": 1446241866925, "_create_user": "admin", "_revision": 1 }

Required Permissions:

crud

Feature:

firewall_general

Additional Errors: