get_packet_capture_status
Retrieve running and packet-count status for FortiManager packet captures, optionally filtering to a specific capture ID to check progress.
Instructions
Get the running/packet-count status of packet captures.
FortiManager reports capture progress for all definitions in one call; when capture_id is given this filters the response down to that one definition.
Args: capture_id: ID of a specific capture definition to filter to (optional; returns all captures' status if unset)
Returns: dict: Status result with keys: - status: "success" or "error" - count: Number of capture statuses returned - captures: List of {id, max_packets, packets, running} objects - message: Error message if failed
Example: >>> result = await get_packet_capture_status(capture_id=2) >>> print(result["captures"][0]["running"]) # 1 if still running
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capture_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||