List the Control Change Policies of your Assets / Data Streams, with optional filters.
Each returned policy includes only the fields that are set in it, except resource_value_check, which is returned as an empty list when no checks are set. Fields that are not set use the platform default.
Reference:
Field
Option
Description
resources
List of KRNs
Return only the policies of these Asset / Data Stream pairs.
queueing_modes
List of enqueue, next or immediate
Return only the policies that use one of these queueing modes.
search
Query parameter
Return only the policies whose resource matches the search term.
sort_by
Query parameter
Sort the results by resource, created, created_by, updated or updated_by. The default is resource.
fromkelvin.api.clientimportClient# Loginclient=Client(url="https://<url.kelvin.ai>",username="<your_username>")client.login(password="<your_password>")# List Control Change Policiesresponse=client.control_change.list_control_change_policies(data={"resources":["krn:ad:doc_demo_plunger_01/doc_demo_closed_time_sp","krn:ad:doc_demo_plunger_01/doc_demo_speed_sp",],"queueing_modes":["enqueue","immediate"],})print(f"Found {len(response)} Control Change Policies")forpolicyinresponse:print(f" - {policy.resource}")