Feature: Add kasm_sessions and kasm_session_status data sources#10
Open
Feature: Add kasm_sessions and kasm_session_status data sources#10
Conversation
- Add documentation about Kasm API side effects when adding users to groups - Update .gitignore to exclude test output files - Fix session handling in RDP and session status tests to prevent premature expiration - Improve error handling and logging for session-related operations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements two new data sources for retrieving and managing Kasm sessions:
Key Features
kasm_sessions Data Source: Provides access to all active Kasm sessions in the system, including details like container IDs, operational status, and image information.
kasm_session_status Data Source: Allows checking the status of a specific Kasm session by user ID and session ID, with options to skip agent checks.
Documentation Updates: Added comprehensive documentation for both data sources in the docs directory and updated the API implementation status document.
Implementation Details
Testing
All tests for the new data sources are passing.
Usage Examples
The PR includes usage examples in the documentation showing how to retrieve session information and check session status.