Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
"""
program main
"""
config_file = resilient.get_config_file()
parser = ExampleArgumentParser(config_file)
opts = parser.parse_args()
inc_types = opts["itype"]
inc_limit = opts["limit"]
# Create SimpleClient for a REST connection to the Resilient services
client = resilient.get_client(opts)
# Discovered Date will be set to the current time
time_now = int(time.time() * 1000)
try:
uri = '/incidents'
rf_config = configparser.ConfigParser()
rf_config.read(config_file)
rf_opts = dict(rf_config.items('fn_risk_fabric'))
params = {
'Limit': inc_limit
}
result = get_risk_model_instances(rf_opts, params)
for ap in result['Records']:
def main():
"""
program main
"""
config_file = resilient.get_config_file()
parser = ExampleArgumentParser(config_file)
opts = parser.parse_args()
inc_types = opts["itype"]
inc_queue = opts["queue"]
# Create SimpleClient for a REST connection to the Resilient services
client = resilient.get_client(opts)
# Discovered Date will be set to the current time
time_now = int(time.time() * 1000)
try:
uri = '/incidents'
rf_config = configparser.ConfigParser()
rf_config.read(config_file)
rf_opts = dict(rf_config.items('fn_risk_fabric'))
result = get_action_plans(rf_opts)
for ap in result:
if 'AssignToQueueName' in ap and ap['AssignToQueueName'] == inc_queue: