List of Additional Categories, Statuses, and Fields
The category defines how each asset is classified and how additional states and fields are mapped in CMDB.
{
"category": [
{
"reference": "",
"id": 0,
"keys": [""],
"additionalFields": [
{
"id": 0,
"key": ""
},
{
"id": 0,
"key": "",
"mapping": [
{
"id": 0,
"value": ""
}
]
},
{
"id": 0,
"key": "",
"value": [""]
}
],
"state": [
{
"id": 0,
"value": ""
}
]
}
]
}
| Property | Description | |
|---|---|---|
| Reference | Relate category to ci and project by common reference. | see |
| Id | Category ID in CMDB. | |
| Keys | Asset types in Lansweeper that fall into that CMDB category. | |
| additionalFields | Mapping additional fields between Lansweeper and CMDB. | |
| state | Relationship between state in Lansweeper and state in CMDB. |
AdditionalFields
{
"id": 0,
"key": "",
"mapping": [
{
"id": 0,
"value": ""
}
],
"value": [""]
}
| Property | Description |
|---|---|
| Id | Id of the additional field in CMDB. |
| Key | Source field in Lansweeper (standard field or custom field key). |
| mapping | Table of equivalences (CMDB id / source value). |
| value | Fixed value to assign to the additional field. |
Validation rules:
- Not allowed to define mapping and value at the same time in the same additionalField.
- Duplicate ids are not allowed in additionalFields.
- Duplicate keys are not allowed in additionalFields.
- Duplicate ids and duplicate values are not allowed in mapping.
State
{
"id": 0,
"value": ""
}
| Property | Description |
|---|---|
| Id | Status ID in CMDB. |
| value | Status value in Lansweeper (for example: Active, Non-active, Spare, Broken, Archived). |
Validation rules:
- Duplicate ids are not allowed in state.
- Duplicate values in state are not allowed.