asset-controller
Get assets assigned to edge (getEdgeAssets)
Returns a page of assets assigned to edge. 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.
get/api/edge/{edgeId}/assets
Path parameters
edgeIdstring required
A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
Query parameters
pageSizeinteger required
Maximum amount of entities in a one page
pageinteger required
Sequence number of page starting from 0
typestring
Asset type
textSearchstring
The case insensitive 'substring' filter based on the asset name.
sortProperty'createdTime' | 'name' | 'type' | 'label' | 'customerTitle'
Property of entity to sort by
sortOrder'ASC' | 'DESC'
Sort order. ASC (ASCENDING) or DESC (DESCENDING)
startTimeinteger
Timestamp. Assets with creation time before it won't be queried
endTimeinteger
Timestamp. Assets with creation time after it won't be queried
Response
OK
Example response
{
"data": [
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "ASSET"
},
"createdTime": 1609459200000,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"customerId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "CUSTOMER"
},
"name": "Empire State Building",
"type": "Building",
"label": "NY Building",
"assetProfileId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "ASSET_PROFILE"
},
"additionalInfo": {}
}
]
}