Skip to content

Conversation

@denniswa
Copy link
Contributor

Add get_root_filtered that allows user to specify xpath to retrieve filtered response from backend / controller
Example usage:
services = clx.get_root_filtered(xpath='/services')

returns only the services part of the tree

…iltered response from backend / controller

Example usage
services = clx.get_root_filtered(xpath='/services')
returns only the services part of the tree
The API is backward compatible since xpath="/" is the default, which
retrieves everything just like the old behavior.
@krihal krihal merged commit c7b5d8f into clicon:main Dec 29, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants