Skip to main content
Version: v2.0

Get configuration item

Retrieve a CI by class and sys_id.

HTTP request

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

Path parameters

NameDescription
classNameClass name
sys_idSys_id

Query parameters

None.

Request body

Don't supply a request body for this method.

Response

An item envelope of CmdbInstance.

Example

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