zia_list_location_groups
Retrieve ZIA location groups referenced by ID in firewall and other security rules. Filter by name, search, group type, or location membership.
Instructions
List ZIA location groups, referenced by ID on the location_groups operand of every ZIA rule resource (Cloud Firewall, DNS, IPS, URL Filtering, SSL Inspection, Web DLP, File Type Control, Sandbox, Cloud App Control). Read-only — the public ZIA API does not expose location group create/update/delete. Supports name/search/group_type filters and JMESPath via the query parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Server-side substring search across location group attributes (forwarded to ZIA's ``search`` query parameter). | |
| name | No | Filter by exact location group name (forwarded to ZIA's ``name`` query parameter). | |
| group_type | No | Filter by group type. ZIA supports ``Static`` (manually-curated membership) and ``Dynamic`` (membership driven by location attributes). | |
| location_id | No | Return only location groups that include this location ID. | |
| page | No | Page offset for pagination. | |
| page_size | No | Page size. Default 100; maximum 1000. | |
| query | No | JMESPath expression for client-side filtering/projection. | |
| service | No | The service to use. | zia |