@@ -0,0 +1,531 @@
+import requests%0Agm_user = %22admin%22%0Agm_pwd = %22infoblox%22%0A%0A# This is the %22find%22 API call for Policy Rules %0Aurl = %22https://netmri/api/3.4/policy_rules/find%22%0A%0A# rlike allows us use regex with the %22val_c_name%22%0A# this will return all the rules that start with Sif_%0Apayload = %22%7B%5Cn    %5C%22op_name%5C%22:%5C%22rlike%5C%22,%5Cn    %5C%22val_c_name%5C%22:%5C%22Sif_%5C%22%5Cn%7D%22%0Aheaders = %7B%0A  'Content-Type': 'application/json',%0A %7D%0Aresponse = requests.request(%22GET%22, url, headers=headers, data = payload,  verify=False, auth=(gm_user, gm_pwd))%0Aprint(response.text.encode('utf8'))

Create get_rules_with_regex.py