livy_close_session
Terminate a Livy Spark session in Microsoft Fabric to release resources and cancel running statements. Specify workspace, lakehouse, and session IDs to close the session.
Instructions
Close (terminate) a Livy session.
Terminates the specified Livy session and releases its resources. Any running statements will be cancelled.
Parameters: workspace_id: Fabric workspace ID. lakehouse_id: Fabric lakehouse ID. session_id: Livy session ID to close.
Returns: Dictionary with success/error status and message.
Example:
python
result = livy_close_session(
workspace_id="12345678-1234-1234-1234-123456789abc",
lakehouse_id="87654321-4321-4321-4321-210987654321",
session_id="0"
)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | ||
| lakehouse_id | Yes | ||
| session_id | Yes |