-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ?columns
also for CSV and JSON exports
#1011
Labels
Comments
Hi, for PDF this is already possible by using |
nilmerg
added
enhancement
New feature or improvement
area/export
Affects exports to other formats
labels
Apr 25, 2024
nilmerg
changed the title
Feature request : print only requested columns for CSV/PDF/JSON Export
Support Apr 25, 2024
?columns
also for CSV and JSON exports
Hi, Added value was from printcolumns that you can give additional columns like the IDs in the export but not on the screen. But tell you that the columns option is the fastest/easiest way, I will be very happy already. |
ref/NC/816326 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Proposal for export's CSV/PDF/JSON
If you now request a CSV export, it provides all the columns that exist.
Wouldn't it be possible to include an additional parameter where you specify which columns you want to see only in the CSV/PDF/EXPORT export?
Describe the solution you'd like
add parameter like printcolums=...
You can then use this parameter as a filter when printing the columns.
example
printcolumns=host.id,host.display_name,host.vars.os,host.address,host.name,host.vars.local_var
Result
id,display_name,address,name,vars.os,vars.local_var
"1370166c5ea3a961e81ecf3ace578e19dac2184e","host.com","1.1.1.1","obj_host","rhel9","city1"
The text was updated successfully, but these errors were encountered: