get_dfw_rule_stats
Retrieve packet, byte, and session hit-count statistics for a Distributed Firewall rule to verify active 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.
Args: policy_id: Parent policy identifier. rule_id: Rule identifier. target: Optional NSX Manager target from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| rule_id | Yes | ||
| policy_id | Yes |