ServiceNow CMDB
9 min
the servicenow cmbd can be used to find ci(configuration item) records in the servicenow cmdb(configuration management database) and respectively pull the record enrichment prerequisites the servicenow cmbd connector requires an url, an username, and a password to interact with the api capabilities this connector provides the following capabilities get ci records configurations http basic authentication authenticates using username and password configuration parameters parameter description type required url a url to the target host string required username username string required password password string required verify ssl verify ssl certificate boolean optional http proxy a proxy to route requests through string optional actions get ci records returns the available configuration items (ci) for a specified configuration management database (cmdb) class (table) endpoint url api/now/v1/table/{{classname}} method get input argument name type required description classname string required name of the resource sysparm limit number optional parameter for get ci records sysparm offset number optional parameter for get ci records sysparm query string optional parameter for get ci records output parameter type description status code number http status code of the response reason string response reason phrase result array result of the operation sys id string unique identifier name string name of the resource example \[ { "status code" 200, "response headers" { "set cookie" "jsessionid=d5dcffbdac700fa9e91ae22c11f4f6a2; path=/; httponly;secure, glide user ", "server timing" "sem wait;dur=0, sesh wait;dur=0", "content encoding" "gzip", "x is logged in" "true", "x transaction id" "95fef03d1541", "x total count" "4", "x content type options" "nosniff", "pragma" "no store,no cache", "cache control" "no cache,no store,must revalidate,max age= 1", "expires" "0", "content type" "application/json;charset=utf 8", "transfer encoding" "chunked", "date" "thu, 28 sep 2023 12 55 08 gmt", "keep alive" "timeout=70", "connection" "keep alive" }, "reason" "ok", "json body" { "result" \[] } } ] response headers header description example cache control directives for caching mechanisms no cache,no store,must revalidate,max age= 1 connection http response header connection keep alive content encoding http response header content encoding gzip content type the media type of the resource application/json;charset=utf 8 date the date and time at which the message was originated thu, 28 sep 2023 12 55 08 gmt expires the date/time after which the response is considered stale 0 keep alive http response header keep alive timeout=70 pragma http response header pragma no store,no cache server information about the software used by the origin server servicenow server timing http response header server timing sem wait;dur=0, sesh wait;dur=0 set cookie http response header set cookie jsessionid=d5dcffbdac700fa9e91ae22c11f4f6a2; path=/; httponly;secure, glide user=; max age=0; expires=thu, 01 jan 1970 00 00 10 gmt; path=/; secure; httponly, glide user session=; max age=0; expires=thu, 01 jan 1970 00 00 10 gmt; path=/; secure; httponly, glide user route=glide 516eb3ac9d9c5f64cf3e643031a64e92; max age=2147483647; expires=tue, 16 oct 2091 16 09 15 gmt; path=/; secure; httponly, glide session store=51fef03d472571107c36cd9bd36d4315; max age=1800; expires=thu, 28 sep 2023 13 25 08 gmt; path=/; secure; httponly, bigipserverpool dev52829=999184138 50240 0000; path=/; httponly; secure strict transport security http response header strict transport security max age=63072000; includesubdomains transfer encoding http response header transfer encoding chunked x content type options http response header x content type options nosniff x is logged in http response header x is logged in true x total count http response header x total count 4 x transaction id http response header x transaction id 95fef03d1541 notes for more information about the api and its capabilities servicenow cmbd api documentation https //developer servicenow\ com/dev do#!/reference/api/utah/rest/cmdb instance api this plugin was last tested against product version v1 api