update_dfw_rule
Partially update an existing NSX distributed firewall rule: change its action, sources, destinations, priority, or disabled state without altering omitted fields.
Instructions
[WRITE] Partially update a DFW rule (PATCH — only provided fields change).
Returns the updated rule dict; omitted arguments keep their values, so read them with list_dfw_rules first. Use it to retarget, re-prioritise or disable a rule — to add one use create_dfw_rule, to remove one delete_dfw_rule.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"policy_id": "<policy_id>",
"rule_id": "<rule_id>"
},
"name": "update_dfw_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | New firewall action. | |
| logged | No | New logged flag. | |
| target | No | Optional NSX Manager target from config. | |
| rule_id | Yes | Rule identifier to update. | |
| sources | No | New source groups. | |
| disabled | No | New disabled flag. | |
| services | No | New services. | |
| policy_id | Yes | Parent policy identifier. | |
| description | No | New description. | |
| destinations | No | New destination groups. | |
| display_name | No | New name. | |
| sequence_number | No | New sequence number. |