snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Feature Request: Pulling Custom Asset Reports with an API call

Open tvreeland-securitymetrics opened this issue 7 years ago • 29 comments

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.

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[bot] avatar Jun 23 '19 15:06 stale[bot]

Still relevant

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[bot] avatar Jun 24 '19 15:06 stale[bot]

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[bot] avatar Aug 23 '19 16:08 stale[bot]

Still relevant

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[bot] avatar Aug 23 '19 16:08 stale[bot]

Also require this functionality.

busy86 avatar Sep 13 '19 12:09 busy86

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[bot] avatar Nov 12 '19 12:11 stale[bot]

Yes

--

Travis Vreeland | Managed Security Services Business Analyst

Support: 801.995.6700 | Direct: 801.995.6402 https://www.securitymetrics.com/

https://www.securitymetrics.com

On Tue, Nov 12, 2019 at 5:37 AM stale[bot] [email protected] wrote:

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!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/snipe/snipe-it/issues/6945?email_source=notifications&email_token=AJ5XPIH5KEB5Z3HXJH7SVTDQTKPPVA5CNFSM4HIETET2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED2DMSQ#issuecomment-552875594, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ5XPIEWFGTKDWMPFQXS6X3QTKPPVANCNFSM4HIETETQ .

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[bot] avatar Nov 12 '19 16:11 stale[bot]

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[bot] avatar Jan 11 '20 16:01 stale[bot]

Yes still relevant.

Regards,

Guy Baxter BSc (Hons) PgDip MBA Head of IT Blackpool and The Fylde College T 01253 504136 M 07475 652561 E [email protected]mailto:[email protected]


From: stale[bot] [email protected] Sent: 11 January 2020 4:57 PM To: snipe/snipe-it [email protected] Cc: Guy Baxter [email protected]; Comment [email protected] Subject: Re: [snipe/snipe-it] Feature Request: Pulling Custom Asset Reports with an API call (#6945)

EXTERNAL EMAIL - SECURITY/PHISHING WARNING!

This email has been sent from outside of the B&FC network.

Is it from someone you already know? Is the email business related and in context with your job role? If not, it could be a phishing email. If it is asking you to click on a link or open an attachment it could be particularly dangerous.

Don't get hooked - it could result in your PC or the wider B&FC network becoming infected. For information regarding warning signs and how to report a suspect email, please visit blackpool.ac.uk/phishing

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!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snipe/snipe-it/issues/6945?email_source=notifications&email_token=AIQUM2EST7EX7PQPYOXOGG3Q5H26DA5CNFSM4HIETET2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIWGCNY#issuecomment-573333815, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIQUM2D446XM3YZVTBKPKATQ5H26DANCNFSM4HIETETQ.


Please consider your environmental responsibility - think before you print.

This email and any attached files are confidential and may also be legally privileged. Every care has been taken to ensure that this email has been sent to the intended recipient. If you believe you are not the intended recipient please delete immediately.

Unless otherwise stated, any views expressed in this message are those of the author and do not necessarily reflect the views of Blackpool and The Fylde College. Nothing explicitly stated or implied in this email shall bind Blackpool and The Fylde College in any contract or obligation.

This email message has been scanned for the presence of computer viruses currently known to the Blackpool and The Fylde College however, the recipient is responsible for virus-checking this message and any attachment.

As a public body, the College may be required to disclose this email and/or any response under the Freedom of Information Act 2000 unless the information in the email and/or any response is covered by one of the exemptions in the Act. This email may be monitored by Blackpool and The Fylde College in accordance with current regulations.

We do not accept service of legal proceedings by email.

busy86 avatar Jan 14 '20 08:01 busy86

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[bot] avatar Jan 14 '20 08:01 stale[bot]

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[bot] avatar Mar 14 '20 11:03 stale[bot]

Yes, still relevant.

Regards,

Guy Baxter BSc (Hons) PgDip MBA Head of IT Blackpool and The Fylde College T 01253 504136 M 07475 652561 E [email protected]mailto:[email protected]


From: stale[bot] [email protected] Sent: 14 March 2020 11:18 AM To: snipe/snipe-it [email protected] Cc: Guy Baxter [email protected]; Comment [email protected] Subject: Re: [snipe/snipe-it] Feature Request: Pulling Custom Asset Reports with an API call (#6945)

EXTERNAL EMAIL

This email is not from B&FC.

There is a chance it could be a phishing email. If it is asking you to click on a link or open an attachment, it could be malicious.

To minimise the risk of your PC or the wider B&FC network being compromised, review the warning signs and how to report a suspect email, please visit blackpool.ac.uk/phishing

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!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snipe/snipe-it/issues/6945#issuecomment-599042799, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIQUM2BXP72ZZBTW74HEE2LRHNR2HANCNFSM4HIETETQ.


Please consider your environmental responsibility - think before you print.

This email and any attached files are confidential and may also be legally privileged. Every care has been taken to ensure that this email has been sent to the intended recipient. If you believe you are not the intended recipient please delete immediately.

Unless otherwise stated, any views expressed in this message are those of the author and do not necessarily reflect the views of Blackpool and The Fylde College. Nothing explicitly stated or implied in this email shall bind Blackpool and The Fylde College in any contract or obligation.

This email message has been scanned for the presence of computer viruses currently known to the Blackpool and The Fylde College however, the recipient is responsible for virus-checking this message and any attachment.

As a public body, the College may be required to disclose this email and/or any response under the Freedom of Information Act 2000 unless the information in the email and/or any response is covered by one of the exemptions in the Act. This email may be monitored by Blackpool and The Fylde College in accordance with current regulations.

We do not accept service of legal proceedings by email.

busy86 avatar Mar 16 '20 08:03 busy86

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[bot] avatar Mar 16 '20 08:03 stale[bot]

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

boring10 avatar Apr 28 '20 19:04 boring10

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[bot] avatar Jun 28 '20 14:06 stale[bot]

Yes this is still relevant.

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[bot] avatar Jun 30 '20 15:06 stale[bot]