Management Plane API > Security > Services > Firewall

Update an Existing Section

Modifies the specified section, but does not modify the section's
associated rules. 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:
PUT
URI Path(s):
/api/v1/firewall/sections/<section-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
FirewallSection+

Example Request:

PUT https://<nsx-mgr>/api/v1/firewall/sections/65a60890-6f48-418d-a7d5-5aaf65fc4e5b { "_revision": 0, "description": "protects app and web VMs", "display_name": "app_and_web-firewall", "section_type": "LAYER3", "applied_tos": [ { "target_type": "LogicalSwitch", "target_id": "b489b427-9f14-401e-81db-d1105a1917fe" } ], "stateful": true }

Successful Response:

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

Example Response:

{ "resource_type": "FirewallSection", "description": "protects app and webVMs", "id": "65a60890-6f48-418d-a7d5-5aaf65fc4e5b", "display_name": "app-firewall", "section_type": "LAYER3", "applied_tos": [ { "target_display_name": "app_and_web-firewall", "is_valid": true, "target_type": "LogicalSwitch", "target_id": "1d9fb5cb-0344-4d7f-899a-afd93276899f" } { "target_display_name": "web-switch", "is_valid": true, "target_type": "LogicalSwitch", "target_id": "b489b427-9f14-401e-81db-d1105a1917fe" } ], "is_default": false, "stateful": true, "rule_count": 0, "locked": true, "comments": "Locked the section", "lock_modified_by": "admin", "lock_modified_time": "1445894033100", "_last_modified_user": "admin", "_system_owned": false, "_last_modified_time": 1445894033117, "_create_user": "admin", "_create_time": 1445894033107, "_revision": 1 }

Required Permissions:

crud

Feature:

firewall_general

Additional Errors: