livy_list_sessions
Retrieve all active Livy Spark sessions in a Microsoft Fabric workspace and lakehouse to monitor session IDs, states, and configurations.
Instructions
List all Livy sessions in a workspace/lakehouse.
Retrieves all active Livy sessions for the specified workspace and lakehouse, including session IDs, states, and configuration details.
Parameters: workspace_id: Fabric workspace ID. lakehouse_id: Fabric lakehouse ID.
Returns: Dictionary with sessions list containing id, state, kind, appId, and other details.
Example: ```python result = livy_list_sessions( workspace_id="12345678-1234-1234-1234-123456789abc", lakehouse_id="87654321-4321-4321-4321-210987654321" )
for session in result.get("sessions", []):
print(f"Session {session['id']}: {session['state']}")
```Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | ||
| lakehouse_id | Yes |