list_dfw_rules
List rules in a DFW security policy with pagination support. Retrieve each rule's action, sources, destinations, services, direction, disabled flag, and sequence number.
Instructions
[READ] List rules in a DFW security policy.
Returns the list envelope: 'items' holds each rule's id, display_name, action, sources, destinations, services, direction, disabled flag and sequence number; 'returned'/'limit'/'truncated'/'hint' say whether the page is complete. 'total' is always null here — a full page reports truncated=true and must be paged with offset; one Application policy can hold thousands of rules. Get policy_id from list_dfw_policies; then get_dfw_rule_stats for a rule's hit counts.
Args: policy_id: Parent policy identifier. target: Optional NSX Manager target from config. limit: Max rules to return (default 50). offset: Number of rules to skip (pagination).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| target | No | ||
| policy_id | Yes |