Management Plane API > Security > Services > Firewall

Update an Existing Section, Including Its Position

Modifies an existing firewall section along with its relative position
among other firewall sections in the system. Simultaneous update (modify)
operations on same section are not allowed to prevent overwriting stale
contents to firewall section. If a concurrent update is performed, HTTP
response code 409 will be returned to the client operating on stale data.
That client should retrieve the firewall section again and re-apply its
update.

Request:

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

Example Request:

POST https://<nsx-mgr>/api/v1/firewall/sections/2111d18f-27ba-4f19-a51d-2173c3972410?action=revise&operation=insert_before&id=79b29ea5-051a-4ab2-af85-fb6520a9f881 { "resource_type": "FirewallSection", "id": "2111d18f-27ba-4f19-a51d-2173c3972410", "display_name": "Layer3 Section with Rules", "section_type": "LAYER3", "stateful": true, "_revision": 0 }

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: