list_tasks
List background tasks such as policy installations and device provisioning in FortiManager, with optional filtering by state (pending, running, done, error, cancelled).
Instructions
List all tasks in FortiManager.
Tasks represent background operations like policy installation, device provisioning, and other long-running processes.
Args: filter_state: Filter by task state (optional): - "pending": Not started - "running": Currently executing - "done": Completed - "error": Failed - "cancelling": Being cancelled - "cancelled": Cancelled
Returns: dict: Task list with keys: - status: "success" or "error" - count: Number of tasks - tasks: List of task objects with id, state, progress, etc. - message: Error message if failed
Example: >>> # Get all tasks >>> result = await list_tasks()
>>> # Get only running tasks
>>> result = await list_tasks(filter_state="running")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter_state | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||