Topics on this page
Add Global Rules
Global rules allow you to enforce and track block rules that have a global scope over all protected computers in your network. Currently, this feature is only available for block rules. Generally, use the following steps to create global rules:
- Create and configure an
- Use an
ApplicationControlGlobalRuleApiobject to create the global rule on Workload Security.
Also see the Create and add new global rules operation in the API Reference. For more information about global rules, see the .
The following example adds software to the Global Rules.
# Create the rules new_rules =  for sha256 in sha256_list: new_rule = api.ApplicationControlGlobalRule() new_rule.sha256 = sha256 new_rules.append(new_rule) # Add the rules global_rules_api = api.GlobalRulesApi(api.ApiClient(configuration)) rules_list = api.ApplicationControlGlobalRules() rules_list.application_control_global_rules = new_rules return global_rules_api.add_global_rules(rules_list, api_version)