cmdb.object#
Work in Progress
cmdb.object.read#
Read common information about an object
Request parameters#
Key | JSON data type | Required | Description |
---|---|---|---|
id | Integer | Yes | Object identifier; for example: 42 |
Response paramters#
JSON key result contains a JSON object.
Key | JSON data type | Description |
---|---|---|
id | String | Object identifier (as numeric string) |
title | String | Object title |
sysid | String | SYSID (see category Global) |
objecttype | String | Object type identifier (as numeric string) |
created | String | Date of creation; format: Y-m-d H:i:s |
updated | String | Date of last update; format: Y-m-d H:i:s Note: This key is optional because not every object has been updated before. |
type_title | String | Translated name of object type |
type_icon | String | Relative URL to object type icon |
status | String | Object status: C__RECORD_STATUS__BIRTH Status-ID = 1 Title = Unfinishedm C__RECORD_STATUS__NORMAL Status-ID = 2 Title = Normal C__RECORD_STATUS__ARCHIVED Status-ID = 3 Title Archived C__RECORD_STATUS__DELETED Status-ID = 4 Title = Deleted C__RECORD_STATUS__TEMPLATE Status-ID = 6 Title = Template C__RECORD_STATUS__MASS_CHANGES_TEMPLATE Status-ID = 7 Title = Mass change template |
cmdb_status | String | CMDB status (see category Global; as numeric string) |
cmdb_status_title | String | Translated CMDB status (see category Global) |
image | String | URL to object picture |
Example:#
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
cmdb.object.create#
Create new object with some optional information
Request parameters#
Key | JSON data type | Required | Description |
---|---|---|---|
type | String|Integer | Yes | Object type constant as string, for example: "C__OBJTYPE__SERVER" Alternatively, object type identifier as integer, for example: 5 |
title | String | Yes | Object title, for example: "My little server" |
category | String | No | Attribute Category in category Global |
categories | Object with Array | No | Category constant, for example: "C__CATG__MODEL" with keys in a array |
purpose | String | No | Attribute Purpose in category Global, for example: "In production" |
cmdb_status | String|Integer | No | Attribute CMDB status in category Global by its constant (string), for example: "C__CMDB_STATUS__IN_OPERATION" Alternatively, by its identifier (integer), for example: 6 |
description | String | No | Attribute Description in category Global |
Response paramters#
JSON key result contains a JSON object.
Key | JSON data type | Description |
---|---|---|
id | String | Object identifier (as numeric string) |
message | String | Some information |
success | Boolean | Should always be true |
Example:#
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 9 |
|
cmdb.object.update#
Change object e.g title of a object.
Request parameters#
Key | JSON data type | Required | Description |
---|---|---|---|
id | Integer | Yes | Object identifier, for example: 42 |
title | String | Yes | New object title, for example: "Your little server" |
Response paramters#
JSON key result contains a JSON object.
Key | JSON data type | Description |
---|---|---|
message | String | Should be |
success | Boolean | Should be true |
Example:#
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 |
|
cmdb.object.delete#
Deletes a object also can set a specific record status like Archived.
Request paramters#
Key | JSON data type | Required | Description |
---|---|---|---|
id | Integer | Yes | Object identifier, for example: 42 |
status | String | Yes | Status constant: C__RECORD_STATUS__ARCHIVED Archive object C__RECORD_STATUS__DELETED Mark object as deleted C__RECORD_STATUS__PURGE Purge object from database |
Response paramters#
JSON key result contains a JSON object.
Key | JSON data type | Description |
---|---|---|
success | Boolean | Should be true |
message | String | Some information |
Example:#
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 |
|
cmdb.object.recycle#
Recyles a object
Request paramters#
Key | JSON data type | Required | Description |
---|---|---|---|
object | Integer | Yes | Object identifier, for example: 464 |
Response paramters#
JSON key result contains a JSON object.
Key | JSON data type | Description |
---|---|---|
success | Boolean | Should be true |
message | String | Some information |
Example:#
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 |
|
cmdb.object.archive#
Archives a object
Request paramters#
Key | JSON data type | Required | Description |
---|---|---|---|
object | Integer | Yes | Object identifier, for example: 464 |
Response paramters#
JSON key result contains a JSON object.
Key | JSON data type | Description |
---|---|---|
success | Boolean | Should be true |
message | String | Some information |
Example:#
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 |
|
cmdb.object.purge#
Purges a object when the status is deleted.
Request paramters#
Key | JSON data type | Required | Description |
---|---|---|---|
object | Integer | Yes | Object identifier, for example: 464 |
Response paramters#
JSON key result contains a JSON object.
Key | JSON data type | Description |
---|---|---|
success | Boolean | Should be true |
message | String | Some information |
Example:#
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 |
|
cmdb.object.markAsTemplate#
Set the Object condition as a Template
Request paramters#
Key | JSON data type | Required | Description |
---|---|---|---|
object | Integer | Yes | Object identifier, for example: 465 |
Response paramters#
JSON key result contains a JSON object.
Key | JSON data type | Description |
---|---|---|
success | Boolean | Should be true |
message | String | Some information |
Example:#
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 |
|
cmdb.object.markAsMassChangeTemplate#
Set the Object condition as a Mass Change Template
Request paramters#
Key | JSON data type | Required | Description |
---|---|---|---|
object | Integer | Yes | Object identifier, for example: 465 |
Response paramters#
JSON key result contains a JSON object.
Key | JSON data type | Description |
---|---|---|
success | Boolean | Should be true |
message | String | Some information |
Example:#
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 |
|