ThingsBoard icon

ThingsBoard

Interact with ThingsBoard REST API

Asset → Get Many by Entity Group

AI-generated

Summary

Fetch assets belonging to an entity group with pagination and sorting

Inputs

  • authentication — Authentication method: API Key or Username / Password
  • pageSize — Maximum number of assets per page
  • page — Page index starting from 0
  • sortOrder — Sort order ASC or DESC
  • assetType — Asset type (asset profile) filter
  • assetTextSearch — Case‑insensitive substring filter on asset name
  • assetSortProperty — Property used for sorting (e.g., createdTime, name)
  • entityGroupId (required) — Identifier of the entity group whose assets are retrieved

Output shape

a list of asset objects

Result is paginated; response contains an array of assets and may include pagination metadata; errors are wrapped in an error envelope

Examples

Example 1: Fetch assets of entity group 784f394c-42b6-435a-983c-b7beff2784f9

resource = Asset, operation = Get Many by Entity Group, authentication = API Key, entityGroupId = 784f394c-42b6-435a-983c-b7beff2784f9, pageSize = 10, page = 0, sortOrder = DESC, assetSortProperty = createdTime

Example 2: Retrieve customer assets with text search and custom sort

resource = Asset, operation = Get Many by Entity Group, authentication = Username / Password, entityGroupId = abc123, pageSize = 20, page = 1, sortOrder = ASC, assetSortProperty = name, assetTextSearch = sensor

Links

Discussion