zms_list_policy_rules
List ZMS microsegmentation policy rules, filtered by name or action, with pagination support and optional fetch-all for full results.
Instructions
List ZMS microsegmentation policy rules.
Read-only. Returns one row per rule (id, name, action, priority, enabled).
Filter by name/action. fetch_all bypasses pagination — use sparingly.
Requires ZSCALER_CUSTOMER_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| query | No | Optional JMESPath expression applied to the results after the API call, for client-side filtering and projection. Field names are exactly what the Zscaler API returns. Examples: "[?enabled==`true`]", "[*].{name: name, id: id}", "length(@)". Omit to get the full records. | |
| action | No | ||
| page_num | No | ||
| fetch_all | No | ||
| page_size | No |