Skip to content

Comments

Add support to query related attribute from commandline#431

Open
kofrezo wants to merge 3 commits intomainfrom
dk_adminapi_joined_queries
Open

Add support to query related attribute from commandline#431
kofrezo wants to merge 3 commits intomainfrom
dk_adminapi_joined_queries

Conversation

@kofrezo
Copy link
Contributor

@kofrezo kofrezo commented Feb 20, 2026

The Python API already support joined queries. That is one can query attributes of related objects by specifying them in the restict paramter of the Query class.

>>> q = Query({"hostname": "hv-1"}, ["hostname", {"vms": ["hostname"]}])

This PR adds support for the command line interface to do the same by using a "dot sytnax"

adminapi "hv-1" -a hostname -a vms.hostname

Support dot syntax e.g.: vms.hostname to query attribute from related
objects.
@kofrezo kofrezo self-assigned this Feb 20, 2026
@kofrezo kofrezo requested a review from TuxPowered42 February 20, 2026 13:19
@kofrezo kofrezo changed the title Add support to Query related attributes Add support to query related attribute from commandline Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant