list_tasks
List all tasks in FortiManager to view background operations like policy installation and device provisioning, with optional filtering by task state.
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 | |||