Skip to main content
Version: v2.0

Create configuration item

Create a CI in a CMDB class.

HTTP request

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

Path parameters

NameDescription
classNameClass name

Query parameters

None.

Request body

Supply a cmdbinstanceapi.CmdbInstance.

Response

An item envelope of the created CmdbInstance.

Example

// Build the request body
var body cmdbinstanceapi.CmdbInstance
response, err := client.Now().Cmdb().Instance().ByClass("cmdb_ci_linux_server").Post(ctx, body, nil)
if err != nil {
log.Fatal(err)
}
Was this page helpful?