Relationship between CMDB project and Lansweeper site
The Project links each Reference with the CMDB project where CIs are created/updated and with the SiteId of Lansweeper.
JSON Structure
{
"project": [
{
"reference": "",
"projectId": "",
"siteId": ""
}
]
}
| Property | Description | |
|---|---|---|
| Reference | Key to the relationship with the ci and category blocks. | see |
| projectId | Project ID in CMDB where the ICs will be registered. | |
| SiteId | Site ID in Lansweeper that will be queried for synchronization. |
Recommendations
- Use the same Reference in Ci, Project and category.
- Validate that the projectId exists and that the user/token has access.
- Get the SiteId from Postman with the request Get Sites. View Guide
Recommended example
{
"project": [
{
"reference": "lansweeper-default",
"projectId": 1,
"siteId": "d4f18c4c-282e-4806-8918-0b76a2a19990"
}
]
}