Skip to main content

system.kanoa.asset.getModeTypes

This function requires KanoaOPS module

Description

Retrieve mode types based on specified parameters.

Syntax

getModeTypes(paramsDict, enabled)
  • Parameters
      paramsDict (dictionary) - A dictionary of key/value pairs used to filter the returned dataset
      enabled (boolean) - Indicates whether the mode type is enabled or not
  • Returns
      pyDataset - A pyDataset containing mode types filtered by the provided parameters
  • Code Examples

    # Example Usage:
    params = {'enabled': True, 'modeTypeId': 1, 'modeTypeName': 'Production'}
    enabled_mode_types = system.kanoa.asset.getModeTypes(params, True)