---
title: "Get All Resource Infos (getAllResources)"
method: GET
path: "/api/resource/tenant"
tags: ["tb-resource-controller"]
---

# Get All Resource Infos (getAllResources)

`GET /api/resource/tenant`

Returns a page of Resource Info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Resource Info is a lightweight object that includes main information about the Resource excluding the heavyweight data. 

Available for users with 'TENANT_ADMIN' authority.

## Query parameters

- `pageSize` integer, required
- `page` integer, required
- `textSearch` string
- `sortProperty` 'createdTime' | 'title' | 'resourceType' | 'tenantId'
- `sortOrder` 'ASC' | 'DESC'

## Response `200`

OK

- PageDataTbResourceInfo
  - `data` TbResourceInfo[] — Array of the entities
    - `id` TbResourceId
      - `id` string, uuid, required — ID of the entity, time-based UUID v1
      - `entityType` 'TB_RESOURCE', required — string
    - `createdTime` integer — Timestamp of the resource creation, in milliseconds
    - `tenantId` TenantId
      - `id` string, uuid, required — ID of the entity, time-based UUID v1
      - `entityType` 'TENANT', required — string
    - `title` string — Resource title.
    - `resourceType` 'LWM2M_MODEL' | 'JKS' | 'PKCS_12' | 'JS_MODULE' | 'IMAGE' | 'DASHBOARD' | 'GENERAL' — Resource type.
    - `resourceSubType` 'IMAGE' | 'SCADA_SYMBOL' | 'EXTENSION' | 'MODULE' — Resource sub type.
    - `resourceKey` string — Resource key.
    - `publicResourceKey` string
    - `etag` string — Resource etag.
    - `fileName` string — Resource file name.
    - `descriptor` unknown
    - `name` string
    - `public` boolean
    - `link` string
    - `publicLink` string
  - `totalPages` integer — Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria
  - `totalElements` integer — Total number of elements in all available pages
  - `hasNext` boolean — 'false' value indicates the end of the result set

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
