Importing Device Data from Device42 to Assets

This article walks you through importing device data from Device42 into Assets.

 

Step 1: Authenticate with the Device42 API

OnLink supports Basic Authentication against the Device42 API. You’ll need your Device42 username and password.

  1. Add Assets Data Source
  2. Give a name to the connection
  3. Select source as API Docs
  4. Give URL as http://api.device42.com/

Refer to the Device42 API Authentication docs for full details.

Step 2: Choose Your Device Endpoint

Device42 offers two endpoints depending on how much detail you need.

Option 1: Basic Device Data

GET /api/1.0/devices/

Returns core device information. Use this when you only need a lightweight import.

Sample fields:

Device42 FieldAssets Attribute
nameName
serial_noSerial Number
asset_noAsset Number
device_urlDevice URL

OnLink Field Mapping

key:serial_no=Serial No
map:asset_no=Asset No
map:device_url=Device URL
map:name=Name

OnLink Configuration

 

Option 2: Full Device Data

GET /api/1.0/devices/all/

Returns all device details including network and service information (available since v6.3.4). Use this when you need a comprehensive import.

Sample fields:

Device42 FieldAssets Attribute
ip_addressesIP Addresses
serial_noSerial Number
hw_depthHardware Depth
device_idDevice ID
service_levelService Level

OnLink Field Mapping

key:serial_no=Serial No
map:ip_addresses=IP
map:device_id=Device ID
map:service_level=Service Level

Step 3: Use Filters to Limit Records

Both endpoints support query parameters to narrow results and avoid pulling your entire inventory on every sync. Config:

 


Use filters to target only the devices relevant to your Assets object schema. This keeps imports fast and avoids unnecessary data in your Assets.

Tip: Use the limit and offset parameters for pagination when working with large datasets.

Step 4: Import into OnLink and Verify in Assets

  1. Configure the OnLink connection — Point OnLink to your Device42 API endpoint (either /api/1.0/devices/ or /api/1.0/devices/all/) with your Basic Auth credentials.

  2. Map fields — In OnLink, map the Device42 response fields to your Assets object type attributes using the mappings from Step 2.

  3. Run the import — Execute the import. OnLink will pull records from Device42 and create or update corresponding objects in Assets.

  4. Verify in Assets — Navigate to Assets, and confirm that the imported objects appear with the correct attribute values.

Summary

StepAction
1Authenticate using Basic Auth
2Choose /api/1.0/devices/ (basic) or /api/1.0/devices/all/ (detailed)
3Apply filters to scope the import
4Map fields in OnLink, run the import, verify in Assets

If you are looking to import Device42 data into Assets, give OnLink a try.