ThingsBoard icon

ThingsBoard

Interact with ThingsBoard REST API

Asset → Get Many by Customer

AI-generated

Summary

Fetch assets assigned to a customer with pagination and sorting options.

Inputs

  • authentication — Method of authentication to use for ThingsBoard connection
  • pageSize — Maximum amount of entities in a one page
  • page — Sequence number of page starting from 0
  • sortOrder — Sort order. ASC (ASCENDING) or DESC (DESCENDING).
  • assetType — Asset type as the name of the asset profile
  • assetTextSearch — The case insensitive "substring" filter based on the asset name
  • assetSortProperty — Property of entity to sort by
  • customerIdRequired (required) — A string value representing the customer ID. For example, "784f394c-42b6-435a-983c-b7beff2784f9".

Output shape

a list of asset objects (paginated)

Results are paginated using page and pageSize; optional filtering via assetTextSearch, sorting via assetSortProperty and sortOrder; may return an empty array if no assets match.

Examples

Example 1: Retrieve the first page of assets for customer 784f394c-42b6-435a-983c-b7beff2784f9 sorted by name descending

resource=asset, operation=Get Many by Customer, authentication=apiKey, customerIdRequired=784f394c-42b6-435a-983c-b7beff2784f9, page=0, pageSize=10, sortOrder=DESC, assetSortProperty=name

Links

Discussion