Lansweeper integration properties
The global and per-class properties of the LansweeperIntegration property set, with example values for the shipped switch class.
This page lists the properties that control the Lansweeper integration, for administrators setting up or changing a class import. The steps that use them are in Import Lansweeper assets into the CMDB.
The properties are in the LansweeperIntegration property set, named by the application property ls.integration.lansweeper.property_set_name. Global properties apply to every class. Class properties repeat once per CMDB class you import. Every table uses the columns Property | Type | Example value | Purpose.
Global properties
| Property | Type | Example value | Purpose |
|---|---|---|---|
LansweeperIntAuthToken |
Reference (System API outbound token) | The Lansweeper OAuth2 token | The token used to call Lansweeper. |
LansweeperIntBaseEndpoint |
String | https://api.lansweeper.com/api/v2/graphql |
The Lansweeper GraphQL endpoint. It is the same for every customer. |
LansweeperIntNumberOfPageLimit |
Integer | 10 |
How many pages a run reads. Set it from the size of your Lansweeper estate. Lansweeper limits API calls per minute. |
LansweeperIntPageLimit |
Integer | 500 |
How many records each API call returns. Lansweeper also limits this. |
LansweeperIntSiteId |
String | aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee |
The ID of the Lansweeper site, not its name. |
Class properties
Each class property is named LansweeperInt<Class><Use>. The integration ships an example for switches, so the names below use Switch. For another class, copy them and replace Switch with a name for the class. The name only has to be consistent, and it is the first argument of LansweeperIntUtil.lansweeperIntegrationEntryPoint. Import one Servicely class per set of properties, even when it spans several Lansweeper asset types.
| Property | Type | Example value | Purpose |
|---|---|---|---|
LansweeperIntSwitchStagingTable |
Reference (import table) | Your switch import table | The import table the class loads into. |
LansweeperIntSwitchEnableTransform |
Boolean | false |
Whether a run transforms the rows straight after importing them. When false, rows stay in the import table. |
LansweeperIntSwitchTransformMap |
Reference (import transform) | Your switch transform map | The transform map to run. Its source table must be the import table above. |
LansweeperIntSwitchFilterString |
String | { conjunction: AND conditions: [ { operator: EQUAL, path: "assetBasicInfo.type", value: "Switch" } ] } |
The filter sent to the Lansweeper API, in Lansweeper’s format. |
LansweeperIntSwitchFieldQueryString |
String | [ "assetBasicInfo.type", "assetBasicInfo.name", "assetCustom.serialNumber", "assetCustom.fields.value", "assetCustom.fields.name" ] |
The Lansweeper fields to request, comma separated inside square brackets. key is always returned. Custom fields need no separate entry. |
LansweeperIntSwitchBaseAttributes |
String | key |
Returned attributes without a dot in their name. Leave it as key. |
LansweeperIntSwitchChildAttributes |
String | assetBasicInfo,assetCustom,ipLocation,recognitionInfo.osMetadata |
The parts before the dot in the field query, except assetCustom.fields. Each child attribute becomes its own import field, for example AssetBasicInfolastSeen. |
LansweeperIntSwitchCustomAttributes |
String | Validation Status,RoomID |
Lansweeper custom fields to import, by field name rather than field key. |
LansweeperIntSwitchAdvancedAttributes |
String | memoryModules,hardDisks,certificates |
Attributes imported as a JSON string, for you to parse later. |
A fuller switch field query also requests assetBasicInfo.description, assetCustom.model, assetCustom.manufacturer, assetBasicInfo.ipAddress, ipLocation.ipLocation, assetBasicInfo.mac, assetCustom.stateName, assetCustom.contact, assetBasicInfo.lastSeen, assetBasicInfo.lastChanged, recognitionInfo.osMetadata.name and recognitionInfo.osMetadata.version. Lansweeper’s API documentation lists the field names and the filter syntax.