EN
Español
English
Português
    Final JSON and checklist

    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

    1. The same reference exists in ci, project and category.
    2. projectId corresponds to a valid project in CMDB.
    3. siteId corresponds to the correct site in Lansweeper.
    4. There are no repeated ids in additionalFields or state.
    5. In additionalFields there are no fields with simultaneous mapping and value.
    6. The JSON is valid (no formatting errors).

    ↩ Back to Example