get_dfw_rule_stats
Check a Distributed Firewall rule's packet, byte, session, and hit counts to verify if it still matches traffic before updating or deleting it.
Instructions
[READ] Get packet/byte hit-count statistics for a DFW rule.
Returns one flat stats object, not an envelope: packet_count, byte_count, session_count, hit_count, popularity_index. Use it before update_dfw_rule or delete_dfw_rule to see if a rule still matches traffic; counters are cumulative and may read zero on a new rule. Ids come from list_dfw_rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional NSX Manager target from config. | |
| rule_id | Yes | Rule identifier. | |
| policy_id | Yes | Parent policy identifier. |