zms_list_policy_rules
List microsegmentation policy rules with pagination, filters by name/action, and JMESPath query. Returns rule name, action, priority, targets, and port/protocol.
Instructions
List ZMS microsegmentation policy rules with pagination and filtering. Filter by name or action (ALLOW/BLOCK). Returns rule name, action, priority, source/destination targets, and port/protocol specs. Supports JMESPath client-side filtering via the query parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_num | No | Page number (default 1). | |
| page_size | No | Number of items per page (default 20, max 100). | |
| fetch_all | No | Whether to fetch all rules ignoring pagination (default false). | |
| name | No | Filter by policy rule name (substring match). | |
| action | No | Filter by policy action: 'ALLOW' or 'BLOCK' (exact match). | |
| query | No | JMESPath expression for client-side filtering/projection on the result. Example: "nodes[?action=='ALLOW'].{name: name, priority: priority}". | |
| service | No | The service to use. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |