Asset Count in DGC
Hi All,
How do we get the count of all assets in DGC?
As of today we have a dashboard and a counter inside it which shows the count. But however, this number is rounded off. and we would like to get the exact count of assets in DGC,.
Thanks and Regards
Kiran
Former User
Posted 5 years ago · Edited 1 year ago·Last reply 5 years ago
2 comments
Bineesh Babu
·5 years ago · EditedHello Kiran,
You can also use global view to see all assets
Thanks
Bineesh
rostislav
·5 years ago · EditedHi Kiran,
You could do it through the Core REST API:
Use the Assets resource, GET method and the /assets endpoint. Make sure the offset parameter is set to 0 and the limit parameter is set to 1. The response contains a total field that gives you the total number of assets in your environment.
You should be able to access the Assets resource at https://<your_envirnoment_url>/docs/restv2/index.html#/Assets
Kind regards,
Rostislav