latestOpenAPI 3.1.0Apache License Version 2.02026-08-17498525913.3 KB

40169ccdec5c

tb-resource-controller

Get Resource Info (getResourceInfoById)

Fetch the Resource Info object based on the provided Resource Id. Resource Info is a lightweight object that includes main information about the Resource excluding the heavyweight data.

Available for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.

get/api/resource/info/{resourceId}

Path parameters

resourceIdstring required

A string value representing the resource id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'

Response

OK

createdTimeinteger

Timestamp of the resource creation, in milliseconds

titlestring

Resource title.

resourceType'LWM2M_MODEL' | 'JKS' | 'PKCS_12' | 'JS_MODULE' | 'IMAGE' | 'DASHBOARD' | 'GENERAL'

Resource type.

resourceSubType'IMAGE' | 'SCADA_SYMBOL' | 'EXTENSION' | 'MODULE'

Resource sub type.

resourceKeystring

Resource key.

publicResourceKeystring
etagstring

Resource etag.

fileNamestring

Resource file name.

{"stackTrail":"components:schemas:JsonNode","oasType":"schema","type":"unknown","description":"A value representing the any type (object or primitive)","example":{}}
namestring
publicboolean
linkstring
publicLinkstring

Example response

{
  "id": {
    "id": "784f394c-42b6-435a-983c-b7beff2784f9",
    "entityType": "TB_RESOURCE"
  },
  "createdTime": 1609459200000,
  "tenantId": {
    "id": "784f394c-42b6-435a-983c-b7beff2784f9",
    "entityType": "TENANT"
  },
  "title": "BinaryAppDataContainer id=19 v1.0",
  "resourceType": "LWM2M_MODEL",
  "resourceSubType": "IOT_SVG",
  "resourceKey": "19_1.0",
  "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4",
  "fileName": "19.xml",
  "descriptor": {}
}