NSX-T Data Center REST API

Create or update Bridge Firewall Rule

Patch the Bridge Firewall Rule. If a Rule for the given
Rule-id is not present, the object will get created and if
it is present it will be updated.
Performance Note: If you want to edit several rules in a bridge firewall policy,
prefer below mentioned API for optimal performance.
Pass all the rules which you wish to edit as embedded rules to it.
Use this API - PATCH (or PUT)
/infra/domains/<domain-id>/bridge-policies/<bridge-firewall-policy-id>

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/domains/{domain-id}/bridge-policies/{bridge-firewall-policy-id}/rules/{rule-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
Rule+

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/infra/domains/default/bridge-policies/bridge_firewall_policy_test/rules/bridge_firewall_rule_test { "action": "ALLOW", "display_name": "Bridge_Firewall_Rule_Test", "description": "Bridge Firewall Rule Test", "sources_excluded": false, "destinations_excluded": false, "source_groups": [ "ANY" ], "destination_groups": [ "ANY" ], "services": [ "ANY" ], "profiles": [ "ANY" ], "logged": false, "scope": [ "/infra/segments/segment_test" ], "sequence_number": 1, "disabled": false, "is_default": false }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_edge_fw

Additional Errors: