Create configuration item
Create a CI in a CMDB class.
HTTP request
POST /api/now/v1/cmdb/instance/{className}
Path parameters
| Name | Description |
|---|---|
className | Class 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)
}