NSX-T Data Center REST API
Create or update Bridge Firewall Policy
Patch the Bridge Firewall Policy.If a Bridge Firewall Policy with the policy-id is not already present,
create a new Bridge Firewall Policy. If it already exists,
update the Bridge Firewall Policy.
Request:
Method:
PATCH
URI Path(s):
/policy/api/v1/infra/domains/{domain-id}/bridge-policies/{bridge-firewall-policy-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
BridgeFirewallPolicy+
Example Request:
PATCH https://<policy-mgr>/policy/api/v1/infra/domains/default/bridge-policies/bridge_firewall_policy_test { "display_name": "Bridge_Firewall_Policy_Test", "description": "Bridge_Firewall_Policy_Test", "category": "LocalBridgeRules", "stateful": true, "rules": [ { "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" ] } ] }Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a