View the Control Change Policy of an Asset / Data Stream pair.
The response returns only the fields that are set in the policy, 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
resource
KRN
The Asset / Data Stream pair of the policy, in the path of the request. In the Kelvin API request it must be URL-encoded. Required.
The KRN in the path must be URL-encoded. In this example krn:ad:doc_demo_plunger_01/doc_demo_closed_time_sp becomes krn%3Aad%3Adoc_demo_plunger_01%2Fdoc_demo_closed_time_sp.
fromkelvin.api.clientimportClient# Loginclient=Client(url="https://<url.kelvin.ai>",username="<your_username>")client.login(password="<your_password>")# Get Control Change Policyresponse=client.control_change.get_control_change_policy(resource="krn:ad:doc_demo_plunger_01/doc_demo_closed_time_sp")print(response)