How to get more information about a server using sys_id

Chandramohan27
Tera Contributor

Hi,

 

I got the sys_id from the below API call, could someone help me with API call to get more information about the server using the sys_id

 

https://mytest.service-now.com/api/now/cmdb/instance/cmdb_ci_server

1 REPLY 1

Sandeep132
Kilo Sage

Hi @Chandramohan27 If you have the sys_id of the record then you can use Table API to get more information from the record. In this case you can use the below API to get more details from cmdb_ci_server record

 

https://mytest.service-now.com/api/now/table/cmdb_ci_server/sys_id_of_the_record?sysparm_fields=name...

 

In the API query you can include the comma separated field names for the attributes you are interested in. The example I provided will give you the name and serial number of the record. If you do not provide "sysparm_fields" then it will list out all the attributes for that record.

 

Hope this helps. Mark it as correct if this resolves your issue.