Skip to content
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

Feature Request: Pulling Custom Asset Reports with an API call #6945

Open
tvreeland-securitymetrics opened this issue Apr 24, 2019 · 27 comments

Comments

@tvreeland-securitymetrics
Copy link

Server (please complete the following information):

  • Hosted and kept upto date by the Snipe-IT Team

Is your feature request related to a problem? Please describe.

  • It is not a problem just an annoyance. I am trying to get a couple fields from the Asset report and I can do it by pulling an API request for the information for all of the assets and then loop through that list and grab just the fields that I would like. It is possible to do with out it but it would be nice to have a call directly to a Custom Asset Report API endpoint.

Describe the solution you'd like

  • Be able to pull a Custom Asset Report with an API call

Describe alternatives you've considered

  • I am trying to get a couple fields from the Asset report and I can do it by pulling an API request for the information for all of the assets and then loop through that list and grab just the fields that I would like.

Additional context

  • I have looked through the API documentation and through the issues and I have not seen this feature or a feature request for it. I am sorry if I have missed it listed somewhere else.
@stale
Copy link

stale bot commented Jun 23, 2019

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Jun 23, 2019
@tvreeland-securitymetrics
Copy link
Author

Still relevant

@stale
Copy link

stale bot commented Jun 24, 2019

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Jun 24, 2019
@stale
Copy link

stale bot commented Aug 23, 2019

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Aug 23, 2019
@tvreeland-securitymetrics
Copy link
Author

Still relevant

@stale
Copy link

stale bot commented Aug 23, 2019

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Aug 23, 2019
@busy86
Copy link

busy86 commented Sep 13, 2019

Also require this functionality.

@stale
Copy link

stale bot commented Nov 12, 2019

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Nov 12, 2019
@tvreeland-securitymetrics
Copy link
Author

@stale
Copy link

stale bot commented Nov 12, 2019

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Nov 12, 2019
@stale
Copy link

stale bot commented Jan 11, 2020

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Jan 11, 2020
@busy86
Copy link

busy86 commented Jan 14, 2020 via email

@stale
Copy link

stale bot commented Jan 14, 2020

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Jan 14, 2020
@stale
Copy link

stale bot commented Mar 14, 2020

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Mar 14, 2020
@busy86
Copy link

busy86 commented Mar 16, 2020 via email

@stale
Copy link

stale bot commented Mar 16, 2020

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Mar 16, 2020
@boring10
Copy link

I'm working on a CLI tool with Node.js that can leverage the API to access everything. It's currently still early and will take me some time before it's ready but you can somewhat accomplish the custom asset report by using the get hardware query option.

For instance, the tool would do a query like the following:

snipeitcli get hardware query --fields <basic|full|allfields|comma,separated,fields,to,return>

snipeitcli get hardware query --model_id 5 --fields id,name,purchase_date.formatted,assigned_to.id

# Export to file to be opened by a spreadsheet program.
snipeitcli get hardware query --model_id 5 --fields id,name,purchase_date.formatted,assigned_to.id > export.csv

Screenshot from 2020-04-28 15-50-33

@stale
Copy link

stale bot commented Jun 28, 2020

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Jun 28, 2020
@tvreeland-securitymetrics
Copy link
Author

Yes this is still relevant.

@stale
Copy link

stale bot commented Jun 30, 2020

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Jun 30, 2020
@stale
Copy link

stale bot commented Aug 29, 2020

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Aug 29, 2020
@tvreeland-securitymetrics
Copy link
Author

@stale
Copy link

stale bot commented Aug 31, 2020

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Aug 31, 2020
@stale
Copy link

stale bot commented Dec 25, 2020

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Dec 25, 2020
@tvreeland-securitymetrics
Copy link
Author

@stale
Copy link

stale bot commented Dec 29, 2020

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Dec 29, 2020
@paixtis1
Copy link

paixtis1 commented Apr 3, 2021

Yes, please! This is a very important feature!
I was really struggling to execute /reports/custom via curl to get a csv output!

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

No branches or pull requests

4 participants