Python scripts to communicate with ClearPass.
Use the ClearPass REST API document to configure ClearPass for REST API access. Don't forget to assign "Policy Manager" access to the Operator Plugin.
THANK YOU TIM CAPPELLI for the AUTHENTICATION part of the scripts.
Source: ClearPass API Python Snippets