get_policy_services
Retrieve services from a firewall policy and resolve them to detailed definitions for precise policy analysis.
Instructions
Get services configured on a firewall policy with optional group resolution.
Retrieves the service list from a firewall policy and optionally resolves each service/group into its detailed definition (ports, protocols, group members).
Useful for policy hardening workflows where you need to compare actual traffic against configured services.
Args: adom: ADOM name package: Policy package name policy_id: Policy ID number resolve: If True, resolve each service to its definition including port ranges and group members (default: True)
Returns: dict: Service information with keys: - status: "success" or "error" - policy_id: The policy ID queried - policy_name: Name of the policy - service_names: List of raw service names from the policy - services: Resolved service details (if resolve=True) - message: Error message if failed
Example: >>> # Get resolved services for policy 10 >>> result = await get_policy_services("root", "default", 10)
>>> # Get just the service names without resolution
>>> result = await get_policy_services("root", "default", 10, resolve=False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| package | Yes | ||
| policy_id | Yes | ||
| resolve | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||