The property “ci” the properties name, brand, model, assetTag, serial, responsible of the cmdb are related.
We continue with the empty configuration json as shown below:
{
"ci": [
{
"reference": "",
"definition": {
"name": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"brand": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"model": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"assetTag": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"serial": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"responsible": {
"SearchBy": [""],
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
}
}
}
]
}
1. We continue with the reference used in the Example Category, which on this occasion is “computer”.
{
"ci": [
{
"reference": "computer",
"definition": {
"name": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"brand": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"model": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"assetTag": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"serial": {
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
},
"responsible": {
"SearchBy": [""],
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
}
}
}
]
}
2. We continue with the session Definition, each definition uses the type, key, defaultValue property, and in the Responsible You can also use the SearchBy.
3. Assign the type of mapping that the properties will perform, the values you can use are Value, Mapper, and FieldValue:
Name | Description |
---|---|
Value | Allows you to assign a value to the selected field through the configuration file. The value is required to be within the value ratio properties |
Mapper | It seeks to associate and/or relate the values of the Aranda case with the values of the associated DevOps field, the relationship of values is made 1 to 1, the assignment is not allowed to be repeated |
FieldValue | Property values are sent directly between platforms without any association/relationship |
4. Property to property add the type you want and the field identifier in techpulse in the key property, up to the property responsible that we will fill in the next step, remember that the names of the properties can be consulted here.
{
"ci": [
{
"reference": "computer",
"definition": {
"name": {
"type": "FieldValue",
"key": "deviceName"
},
"brand": {
"type": "Mapper",
"key": "deviceMfg"
},
"model": {
"type": "Mapper",
"key": "deviceModel"
},
"assetTag": {
"type": "FieldValue",
"key": "asset_tag"
},
"serial": {
"type": "FieldValue",
"key": "deviceSn"
},
"responsible": {
"SearchBy": [""],
"type": "",
"key": "",
"DefaultValue": {
"id": ""
}
}
}
}
]
}
5. For the session responsible We will use the property SearchBy with the value “Email” to perform the user search within the cmdb by email, otherwise the user will be searched as shown by techpulse here, remember that the SearchBy only used when the type is “FieldValue”.
{
"ci": [
{
"reference": "computer",
"definition": {
"name": {
"type": "FieldValue",
"key": "deviceName"
},
"brand": {
"type": "Mapper",
"key": "deviceMfg"
},
"model": {
"type": "Mapper",
"key": "deviceModel"
},
"assetTag": {
"type": "FieldValue",
"key": "asset_tag"
},
"serial": {
"type": "FieldValue",
"key": "deviceSn"
},
"responsible": {
"SearchBy": ["Email"],
"type": "FieldValue",
"key": "lastSignedUser"
}
}
}
]
}
5. On the property DefaultValue you can set a default value to assign in the CMDB.
{
"ci": [
{
"reference": "computer",
"definition": {
"name": {
"type": "FieldValue",
"key": "deviceName"
},
"brand": {
"type": "Mapper",
"key": "deviceMfg"
},
"model": {
"type": "Mapper",
"key": "deviceModel"
},
"assetTag": {
"type": "FieldValue",
"key": "asset_tag"
},
"serial": {
"type": "FieldValue",
"key": "deviceSn"
},
"responsible": {
"SearchBy": ["Email"],
"type": "FieldValue",
"key": "lastSignedUser",
"DefaultValue": {
"id" : 1
}
}
}
}
]
}