This corresponds to the “class” we mentioned earlier. Notice how the API calls have the “classname” URL parameter. The “class” parameter tells us what type of CI it is and as you will see it is a very important detail when dealing with the REST API. My developer instance has more than 2800 CI’s. You can show all the items by typing “cmdb_ci.list” in the “Navigator”. (services, applications, servers, networks, databases …).Īll objects in this database are called “Configuration Items” or “CI” for short. This last table is the parent for everything else. At the top of the hierarchy we have the “cmdb” table and from that a single child called “cmdb_ci”. The main thing to know is that the CMDB is organized in a large hierarchy of tables. If you are reading this more than likely you know what a CMDB now, so I won’t provide much detail here. These calls were used in a previous tutorial called “ Creating ServiceNow Incidents via REST API” which showed some examples on how to address one of the most common tasks organizations are willing to automate in ServiceNow. The collection also contains REST API calls to manage Incidents in ServiceNow. If you need code in a specific language, Postman can help you generate code for any of the API calls in the collection. In this tutorial we will explore this by using a Postman collection you can find in this GitHub repo. If we are going to implement automation in ServiceNow sooner or later we need to deal with the CMDB and the way to do this is to use the REST API. Most organizations nowadays have a requirement to automate services delivery in order to achieve greater agility and efficiency. The CMDB (Configuration Management Database) in ServiceNow is a key component that underpins multiple services. This is the motivation for this tutorial and for the previous one on ServiceNow incidents with REST API. ![]() ![]() I personally find ServiceNow has great online documentation but I like to see some examples to understand how other people are using it. In this tutorial we are going to use a practical example to show you how to use the ServiceNow REST API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |