retrieving all company assets through rest api

Deepali5
Tera Contributor

Hi

Can I retrieve all assets assigned to a company through rest API. What would the query look like?

Also how many OOB hardware model category values are there in asset table?

Or do I have to create all model categories for computers, servers, all the components of a computer like disks, RAM, NICs, Power supply etc?

Are there CMDB tables for the components of computer?

Thank you

-Deepali

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Deepali,

if you are referring to alm_asset table there is company field there; you can apply GET Method and get all assets for that company

GET: https://instanceName.service-now.com/api/now/table/alm_asset?sysparm_query=company.name=ACME China

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi

Yes, Thanks, that confirms my understanding about rest call. Can you answer my other questions also please? Basically I want to how I can store the components like of Dimm,  hard disks, Nics etc of a system into assets and cmdb tables.

Thanks again