Skip to main content
Version: main

List configuration items

Retrieve the CIs of a CMDB class.

HTTP request

GET /api/now/v1/cmdb/instance/{className}

Path parameters

NameDescription
classNameClass name

Query parameters

NameDescription
sysparm_queryOptional — set via the verb's QueryParameters type.
sysparm_limitOptional — set via the verb's QueryParameters type.
sysparm_offsetOptional — set via the verb's QueryParameters type.

Request body

Don't supply a request body for this method.

Response

A collection envelope of CmdbInstance.

Example

response, err := client.Now().Cmdb().Instance().ByClass("cmdb_ci_linux_server").Get(ctx, nil)
if err != nil {
log.Fatal(err)
}
Was this page helpful?