Below is a complete example of a configuration file.
{
"ci": [
{
"reference": "lansweeper-default",
"definition": {
"name": {
"type": "FieldValue",
"key": "Name"
},
"brand": {
"type": "FieldValue",
"key": "Manufacturer"
},
"model": {
"type": "FieldValue",
"key": "Model"
},
"serial": {
"type": "FieldValue",
"key": "SerialNumber"
},
"assetTag": {
"type": "FieldValue",
"key": "BarCode"
},
"responsible": {
"type": "FieldValue",
"key": "UserName",
"SearchBy": [
"Email"
],
"DefaultValue": {
"id": 1
}
}
}
}
],
"project": [
{
"reference": "lansweeper-default",
"projectId": 1,
"siteId": "d4f18c4c-282e-4806-8918-0b76a2a19990"
}
],
"category": [
{
"reference": "lansweeper-default",
"id": 1,
"keys": [
"Windows",
"Linux",
"Mac"
],
"additionalFields": [
{
"id": 1,
"key": "Caption"
},
{
"id": 2,
"key": "Version"
},
{
"id": 3,
"key": "IpAddress"
},
{
"id": 4,
"key": "Domain",
"value": [
"CORP"
]
}
],
"state": [
{
"id": 1,
"value": "Active"
},
{
"id": 2,
"value": "Non-active"
}
]
}
]
}
Final checklist before saving to AIC
- The same reference exists in ci, project and category.
- projectId corresponds to a valid project in CMDB.
- siteId corresponds to the correct site in Lansweeper.
- There are no repeated ids in additionalFields or state.
- In additionalFields there are no fields with simultaneous mapping and value.
- The JSON is valid (no formatting errors).