Skip to main content

system.kanoa.asset.getAssets(paramsDict)

Returns assets filtered by the provided parameters. Parameter keys are optional.


Parameters

paramsDict Dictionary

- assetGroupIdListList of Integers
- assetGroupNameString
- assetIdInteger
- assetIdListList of Integers
- assetNameString
- assetPathString
- assetPathListList of Strings
- assetTypeIdInteger
- assetTypeIdListList of Integers
- assetTypeNameString
- enabledBoolean
- functionStringFilter assets based on a users role functions
- oeeEnabledBoolean
- parentIdInteger
- processTypeIdInteger
- processTypeIdListList of Integers
- processTypeNameString
- userIdIntegerFilter assets based on the user

Returns

assetData pyDataset


Example

assetData = system.kanoa.asset.getAssets({'assetName': 'Box Line 1'})
assetInfo = system.kanoa.utilities.convertDatasetRowToJSON(assetData, 0)
for k,v in assetInfo.items():
print '%s: %s'%(k,v)
>>>
assetTypeId: 4
assetTypeName: line
assetTypeId: 1
assetTypeName: discrete
targetThreshold: 0.1
oeeEnable: True
enabled: True
path: Kanoa Box Co\Box Plant\Packaging\Box Line 1
assetId: 4
assetPath: Kanoa Box Co\Box Plant\Packaging\Box Line 1
assetGroupName: Packaging
timeZone: Eastern Standard Time
displayPath: Kanoa Box Co\Box Plant\Packaging\Box Line 1
assetGroupId: 1
parentId: 3
tagPath: [Kanoa]/Kanoa Box Co/Box Plant/Packaging/Box Line 1
sortOrder: 10
assetName: Box Line 1
assetGroupColor: None
assetTypePath: enterprise\site\area\line
iconPath: kanoa/line
>>>