Skip to content

Cloud Policies

The Cloud Policies service collection provides operations for managing cloud security policies, compliance frameworks and controls, rules, rule overrides, enriched assets, evaluation results, and suppression rules across cloud environments.

LanguageLast Update
Pythonv1.6.5
PowerShell
Gov0.22.0
TypeScriptv0.6.0
Rustv0.7.1
Rubyv1.4.0


OperationDescription
CloneComplianceFramework
clone_compliance_framework
Clone an existing compliance framework to create a custom copy
CreateComplianceControl
create_compliance_control
Create a new custom compliance control
CreateComplianceFramework
create_compliance_framework
Create a new custom compliance framework
CreateRuleMixin0
create_rule
Create a new rule
CreateRuleOverride
create_rule_override
Create a new rule override
CreateSuppressionRule
create_suppression_rule
Create a new suppression rule
DeleteComplianceControl
delete_compliance_control
Delete custom compliance controls
DeleteComplianceFramework
delete_compliance_framework
Delete a custom compliance framework and all associated controls and rule assignments
DeleteRuleMixin0
delete_rule
Delete a rule
DeleteRuleOverride
delete_rule_override
Delete a rule override
DeleteSuppressionRules
delete_suppression_rules
Delete Suppression Rules by ID
GetComplianceControls
get_compliance_controls
Get compliance controls by ID
GetComplianceFrameworks
get_compliance_frameworks
Get compliance frameworks by ID
GetEnrichedAsset
get_enriched_asset
Gets enriched assets that combine a primary resource with all its related resources
GetEvaluationResult
get_evaluation_result
Gets evaluation results based on the provided rule
GetRule
get_rule
Get a rule by id
GetRuleInputSchema
get_rule_input_schema
Get rule input schema for given resource type
GetRuleOverride
get_rule_override
Get a rule override
GetSuppressionRules
get_suppression_rules
Get Suppression Rules by ID
QueryComplianceControls
query_compliance_controls
Query for compliance controls by various parameters
QueryComplianceFrameworks
query_compliance_frameworks
Query for compliance frameworks by various parameters
QueryRule
query_rule
Query for rules by various parameters
QuerySuppressionRules
query_suppression_rules
Query suppression rules with filtering, sorting and pagination
RenameSectionComplianceFramework
rename_section_compliance_framework
Rename a section in a custom compliance framework
ReplaceControlRules
replace_control_rules
Assign rules to a compliance control (full replace)
UpdateComplianceControl
update_compliance_control
Update a custom compliance control
UpdateComplianceFramework
update_compliance_framework
Update a custom compliance framework
UpdateRule
update_rule
Update a rule
UpdateRuleOverride
update_rule_override
Update a rule override
UpdateSuppressionRule
update_suppression_rule
Update a suppression rule

Clone an existing compliance framework to create a custom copy

Method POST
Route /cloud-policies/entities/compliance/clone-framework/v1
Scope Cloud Security Policies: WRITE
PEP 8 clone_compliance_framework
ids query · string
The uuid of the compliance framework to clone
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.clone_compliance_framework(ids=id_list)
print(response)
[
{
"active": false,
"authority": "string",
"description": "string",
"name": "string",
"uuid": "string",
"version": "string"
}
]


Create a new custom compliance control

Method POST
Route /cloud-policies/entities/compliance/controls/v1
Scope Cloud Security Policies: WRITE
PEP 8 create_compliance_control
body body · dictionary
Full body payload as JSON formatted dictionary.
description body · string
The description of hte custom compliance control.
framework_id body · string
The framework ID of the custom compliance control.
name body · string
The name of the custom compliance control.
section_name body · string
The section name of the custom compliance control.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_compliance_control(description="string",
framework_id="string",
name="string",
section_name="string")
print(response)
[
{
"applicable_profiles": [],
"authority": "string",
"code": "string",
"control_type": "string",
"control_version": "string",
"description": "string",
"name": "string",
"origin": "string",
"requirement": "string",
"section_name": "string",
"security_framework": [],
"uuid": "string"
}
]


Create a new custom compliance framework

Method POST
Route /cloud-policies/entities/compliance/frameworks/v1
Scope Cloud Security Policies: WRITE
PEP 8 create_compliance_framework
body body · dictionary
Full body payload as JSON formatted dictionary.
active body · boolean
Value to determine if the compliance framework will be active.
description body · string
The description of the new compliance framework.
name body · string
The name of the new compliance framework.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_compliance_framework(active=boolean,
description="string",
name="string")
print(response)
[
{
"active": false,
"authority": "string",
"description": "string",
"name": "string",
"uuid": "string",
"version": "string"
}
]


Create a new rule

Method POST
Route /cloud-policies/entities/rules/v1
Scope Cloud Security Policies: WRITE
PEP 8 create_rule
body body · dictionary
Full body payload as JSON formatted dictionary.
alert_info body · string
The info of the alert.
attack_types body · string
The type of attacks.
category body · string
controls body · array
The authority and code of the rule.
description body · string
The description of the rule.
domain body · string
The domain of the rule.
labels body · array
logic body · string
The logic for the rule.
name body · string
The name of the rule.
parent_rule_id body · string
The id of the parent.
platform body · string
The platform covered by the rule.
provider body · string
The provider for the rule.
remediation_info body · string
The remediation info provided by the rule.
remediation_url body · string
The URL providing the remediation.
resource_type body · string
The type of the resource.
severity body · integer
The severity level.
subdomain body · string
The subdomain for the rule.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
controls = [
{
"Authority": "string",
"Code": "string"
}
]
response = falcon.create_rule(alert_info="string",
attack_types="string",
controls=controls,
description="string",
domain="string",
logic="string",
name="string",
parent_rule_id="string",
platform="string",
provider="string",
remediation_info="string",
remediation_url="string",
resource_type="string",
severity=integer,
subdomain="string")
print(response)
[
{
"alert_info": "string",
"attack_types": [],
"auto_remediable": false,
"category": "string",
"cid": "string",
"cloneable": false,
"controls": [],
"created_at": "string",
"created_by": "string",
"custom_configuration": {},
"deleted_at": "string",
"deleted_by": "string",
"deprecated": false,
"description": "string",
"domain": "string",
"logic": "string",
"logic_format": "string",
"mitre_tactics_id": "string",
"mitre_tactics_name": "string",
"mitre_tactics_url": "string",
"mitre_techniques_id": "string",
"mitre_techniques_name": "string",
"mitre_techniques_url": "string",
"mutable": "string",
"name": "string",
"origin": "string",
"overrides": [],
"parent_rule__pk": 0,
"parent_rule_short_code": 0,
"parent_rule_short_uuid": "string",
"platform": "string",
"provider": "string",
"remediation": "string",
"remediation_url": "string",
"resource_metadata": "string",
"resource_types": [],
"revision": 0,
"rule_logic_list": [],
"scope_asset_filter": {},
"scope_type": "string",
"severity": 0,
"short_code": 0,
"subdomain": "string",
"update_reason": "string",
"updated_at": "string",
"updated_by": "string",
"uuid": "string",
"visible": false
}
]


Create a new rule override

Method POST
Route /cloud-policies/entities/rule-overrides/v1
Scope Cloud Security Policies: WRITE
PEP 8 create_rule_override
body body · dictionary
Full body payload as JSON formatted dictionary.
overrides body · array
The new rule override.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
overrides = [
{
"comment": "string",
"crn": "string",
"expires_at": "2025-11-10T21:16:14.315Z",
"override_type": "string",
"overrides_details": "string",
"reason": "string",
"rule_id": "string",
"target_region": "string"
}
]
response = falcon.create_rule_override(overrides=overrides)
print(response)
[
"string"
]


Create a new suppression rule

Method POST
Route /cloud-policies/entities/suppression-rules/v1
Scope Cloud Security Policies: WRITE
PEP 8 create_suppression_rule
body body · dictionary
Full body payload as JSON formatted dictionary.
description body · string
Description of the suppression rule.
domain body · string
Policy domain for the rule.
name body · string
Name of the suppression rule.
rule_selection_filter body · object
Filter criteria for selecting rules.
rule_selection_type body · string
Type of rule selection.
scope_asset_filter body · object
Filter criteria for scoping assets.
scope_type body · string
Type of scope for the rule.
subdomain body · string
Policy subdomain for the rule.
suppression_comment body · string
Comment explaining the suppression.
suppression_expiration_date body · string
Expiration date for the suppression.
suppression_reason body · string
Reason for the suppression.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
rule_selection_filter = {
"rule_ids": [
"string"
],
"rule_names": [
"string"
],
"rule_origins": [
"string"
],
"rule_providers": [
"string"
],
"rule_services": [
"string"
],
"rule_severities": [
"string"
]
}
scope_asset_filter = {
"account_ids": [
"string"
],
"cloud_group_ids": [
"string"
],
"cloud_providers": [
"string"
],
"regions": [
"string"
],
"resource_ids": [
"string"
],
"resource_names": [
"string"
],
"resource_types": [
"string"
],
"service_categories": [
"string"
],
"tags": [
"string"
]
}
response = falcon.create_suppression_rule(description="string",
domain="string",
name="string",
rule_selection_filter=rule_selection_filter,
rule_selection_type="string",
scope_asset_filter=scope_asset_filter,
scope_type="string",
subdomain="string",
suppression_comment="string",
suppression_expiration_date="string",
suppression_reason="string")
print(response)
[
"string"
]


Delete custom compliance controls

Method DELETE
Route /cloud-policies/entities/compliance/controls/v1
Scope Cloud Security Policies: WRITE
PEP 8 delete_compliance_control
ids query · string or list of strings
The uuids of compliance control to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_compliance_control(ids=id_list)
print(response)
[
"string"
]


Delete a custom compliance framework and all associated controls and rule assignments

Method DELETE
Route /cloud-policies/entities/compliance/frameworks/v1
Scope Cloud Security Policies: WRITE
PEP 8 delete_compliance_framework
ids query · string
The uuids of compliance framework to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_compliance_framework(ids=id_list)
print(response)
[
"string"
]


Delete a rule

Method DELETE
Route /cloud-policies/entities/rules/v1
Scope Cloud Security Policies: WRITE
PEP 8 delete_rule
ids query · string or list of strings
The uuids of rules to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_rule(ids=id_list)
print(response)
[
"string"
]


Delete a rule override

Method DELETE
Route /cloud-policies/entities/rule-overrides/v1
Scope Cloud Security Policies: WRITE
PEP 8 delete_rule_override
ids query · string or list of strings
The uuids of rule overrides to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_rule_override(ids=id_list)
print(response)
[
{
"asset_filter": {},
"asset_scope_type": "string",
"cid": "string",
"comment": "string",
"created_at": "string",
"created_by": "string",
"crn": "string",
"deleted_at": "string",
"deleted_by": "string",
"expires_at": "string",
"override_details": "string",
"override_type": "string",
"reason": "string",
"rule_id": "string",
"suppression_rule_id": "string",
"target_region": "string",
"update_reason": "string",
"updated_at": "string",
"updated_by": "string",
"user_id": "string",
"uuid": "string"
}
]


Delete Suppression Rules by ID

Method DELETE
Route /cloud-policies/entities/suppression-rules/v1
Scope Cloud Security Policies: WRITE
PEP 8 delete_suppression_rules
ids query · string or list of strings
The uuids of the suppression rules to delete. A maximum of 10 IDs can be provided.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_suppression_rules(ids=id_list)
print(response)
[
{
"created_at": "string",
"created_by": "string",
"deleted_at": "string",
"deleted_by": "string",
"description": "string",
"disabled": false,
"domain": "string",
"id": "string",
"name": "string",
"rule_ids": [],
"rule_selection_count": 0,
"rule_selection_filter": {},
"rule_selection_type": "string",
"scope_asset_filter": {},
"scope_type": "string",
"subdomain": "string",
"suppression_comment": "string",
"suppression_expiration_date": "string",
"suppression_reason": "string",
"update_reason": "string",
"updated_at": "string",
"updated_by": "string"
}
]


Get compliance controls by ID

Method GET
Route /cloud-policies/entities/compliance/controls/v1
Scope Cloud Security Policies: READ
PEP 8 get_compliance_controls
ids query · string or list of strings
The uuids of compliance controls to retrieve
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_compliance_controls(ids=id_list)
print(response)
[
{
"applicable_profiles": [],
"authority": "string",
"code": "string",
"control_type": "string",
"control_version": "string",
"description": "string",
"name": "string",
"origin": "string",
"requirement": "string",
"section_name": "string",
"security_framework": [],
"uuid": "string"
}
]


Get compliance frameworks by ID

Method GET
Route /cloud-policies/entities/compliance/frameworks/v1
Scope Cloud Security Policies: READ
PEP 8 get_compliance_frameworks
ids query · string or list of strings
The uuids of compliance frameworks to retrieve
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_compliance_frameworks(ids=id_list)
print(response)
[
{
"active": false,
"authority": "string",
"description": "string",
"name": "string",
"uuid": "string",
"version": "string"
}
]


Gets enriched assets that combine a primary resource with all its related resources

Method GET
Route /cloud-policies/entities/enriched-resources/v1
Scope Cloud Security Policies: READ
PEP 8 get_enriched_asset
ids query · string or list of strings
List of asset IDs (maximum 100 IDs allowed).
domain query · string
Rule domain (Currently only used for KAC Rego rules)
subdomain query · string
Rule subdomain (Currently only used for KAC Rego rules)
resource_type query · string
Currently the Resource type field is only used when KAC Rules are specified vai Domain: Runtime & Subdomain: IOM. For KAC rules, we return static sample data instead of real assets b/c we don’t have KAC payloads stored for customers. This field valued selects what sample data resource type we return which the UI shows in the Rego Editor to do test evaluations
Available values (9)
cronjobsdaemonsetsdeployments
jobspodsreplicasets
replicationcontrollersservicesstatefulsets
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_enriched_asset(ids=id_list,
domain="string",
subdomain="string",
resource_type="string")
print(response)
[
"string"
]


Gets evaluation results based on the provided rule

Method POST
Route /cloud-policies/entities/evaluation/v1
Scope Cloud Security Policies: WRITE
PEP 8 get_evaluation_result
body body · dictionary
Full body payload as JSON formatted dictionary.
domain body · string
input body · object
The input for the provided rule.
logic body · string
The logic of the provided rule.
subdomain body · string
cloud_provider query · string
Cloud Service Provider of the provided IDs
Available values (4)
awsazuregcp
oci
resource_type query · string
Resource Type of the provided IDs
ids query · string or list of strings
List of assets to evaluate (maximum 100 IDs allowed).
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
input = {}
response = falcon.get_evaluation_result(cloud_provider="string",
resource_type="string",
ids=id_list,
input=input,
logic="string")
print(response)
[
"string"
]


Get a rule by id

Method GET
Route /cloud-policies/entities/rules/v1
Scope Cloud Security Policies: READ
PEP 8 get_rule
ids query · string or list of strings
The uuids of rules to retrieve
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_rule(ids=id_list)
print(response)
[
{
"alert_info": "string",
"attack_types": [],
"auto_remediable": false,
"category": "string",
"cid": "string",
"cloneable": false,
"controls": [],
"created_at": "string",
"created_by": "string",
"custom_configuration": {},
"deleted_at": "string",
"deleted_by": "string",
"deprecated": false,
"description": "string",
"domain": "string",
"logic": "string",
"logic_format": "string",
"mitre_tactics_id": "string",
"mitre_tactics_name": "string",
"mitre_tactics_url": "string",
"mitre_techniques_id": "string",
"mitre_techniques_name": "string",
"mitre_techniques_url": "string",
"mutable": "string",
"name": "string",
"origin": "string",
"overrides": [],
"parent_rule__pk": 0,
"parent_rule_short_code": 0,
"parent_rule_short_uuid": "string",
"platform": "string",
"provider": "string",
"remediation": "string",
"remediation_url": "string",
"resource_metadata": "string",
"resource_types": [],
"revision": 0,
"rule_logic_list": [],
"scope_asset_filter": {},
"scope_type": "string",
"severity": 0,
"short_code": 0,
"subdomain": "string",
"update_reason": "string",
"updated_at": "string",
"updated_by": "string",
"uuid": "string",
"visible": false
}
]


Get rule input schema for given resource type

Method GET
Route /cloud-policies/combined/rules/input-schema/v1
Scope Cloud Security Policies: READ
PEP 8 get_rule_input_schema
domain query · string
domain
subdomain query · string
subdomain
cloud_provider query · string
Cloud service provider for the resource type
Available values (4)
awsazuregcp
oci
resource_type query · string
Selects the resource type for which to retrieve the rule input schema
enriched query · boolean
When true, returns the enriched schema with inlined related resource types. Defaults to true.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_rule_input_schema(domain="string",
subdomain="string",
cloud_provider="string",
resource_type="string",
enriched=boolean)
print(response)
[
{}
]


Get a rule override

Method GET
Route /cloud-policies/entities/rule-overrides/v1
Scope Cloud Security Policies: READ
PEP 8 get_rule_override
ids query · string or list of strings
The uuids of rule overrides to retrieve
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_rule_override(ids=id_list)
print(response)
[
{
"asset_filter": {},
"asset_scope_type": "string",
"cid": "string",
"comment": "string",
"created_at": "string",
"created_by": "string",
"crn": "string",
"deleted_at": "string",
"deleted_by": "string",
"expires_at": "string",
"override_details": "string",
"override_type": "string",
"reason": "string",
"rule_id": "string",
"suppression_rule_id": "string",
"target_region": "string",
"update_reason": "string",
"updated_at": "string",
"updated_by": "string",
"user_id": "string",
"uuid": "string"
}
]


Get Suppression Rules by ID

Method GET
Route /cloud-policies/entities/suppression-rules/v1
Scope Cloud Security Policies: READ
PEP 8 get_suppression_rules
ids query · string or list of strings
The uuids of the suppression rules to retrieve
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_suppression_rules(ids=id_list)
print(response)
[
{
"created_at": "string",
"created_by": "string",
"deleted_at": "string",
"deleted_by": "string",
"description": "string",
"disabled": false,
"domain": "string",
"id": "string",
"name": "string",
"rule_ids": [],
"rule_selection_count": 0,
"rule_selection_filter": {},
"rule_selection_type": "string",
"scope_asset_filter": {},
"scope_type": "string",
"subdomain": "string",
"suppression_comment": "string",
"suppression_expiration_date": "string",
"suppression_reason": "string",
"update_reason": "string",
"updated_at": "string",
"updated_by": "string"
}
]


Query for compliance controls by various parameters

Method GET
Route /cloud-policies/queries/compliance/controls/v1
Scope Cloud Security Policies: READ
PEP 8 query_compliance_controls
filter query · string
FQL filter, allowed props:
Available values (7)
compliance_control_namecompliance_control_authoritycompliance_control_type
compliance_control_sectioncompliance_control_requirementcompliance_control_benchmark_name
compliance_control_benchmark_version
limit query · integer
The maximum number of resources to return. The maximum allowed is 500.
offset query · integer
The number of results to skip before starting to return results.
sort query · string
Field to sort on. Sortable fields:
Available values (7)
compliance_control_namecompliance_control_authoritycompliance_control_type
compliance_control_sectioncompliance_control_requirementcompliance_control_benchmark_name
compliance_control_benchmark_version
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_compliance_controls(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
"string"
]


Query for compliance frameworks by various parameters

Method GET
Route /cloud-policies/queries/compliance/frameworks/v1
Scope Cloud Security Policies: READ
PEP 8 query_compliance_frameworks
filter query · string
FQL filter, allowed properties:
Available values (3)
compliance_framework_namecompliance_framework_versioncompliance_framework_authority
limit query · integer
The maximum number of resources to return. The maximum allowed is 500.
offset query · integer
The number of results to skip before starting to return results.
sort query · string
Field to sort on. Sortable fields:
Available values (3)
compliance_framework_namecompliance_framework_versioncompliance_framework_authority
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_compliance_frameworks(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
"string"
]


Query for rules by various parameters

Method GET
Route /cloud-policies/queries/rules/v1
Scope Cloud Security Policies: READ
PEP 8 query_rule
filter query · string
FQL filter, allowed properties:
Available values (27)
rule_auto_remediablerule_categoryrule_cloneable
rule_compliance_benchmarkrule_compliance_benchmark_uuidrule_compliance_framework
rule_control_requirementrule_control_sectionrule_created_at
rule_descriptionrule_domainrule_mitre_tactic
rule_mitre_techniquerule_namerule_origin
rule_parent_uuidrule_providerrule_resource_type
rule_resource_type_namerule_risk_factorrule_service
rule_severityrule_short_coderule_status
rule_subdomainrule_updated_atrule_updated_by
limit query · integer
The maximum number of resources to return. The maximum allowed is 500.
offset query · integer
The number of results to skip before starting to return results.
sort query · string
Field to sort on. Sortable fields:
Available values (27)
rule_auto_remediablerule_categoryrule_cloneable
rule_compliance_benchmarkrule_compliance_benchmark_uuidrule_compliance_framework
rule_control_requirementrule_control_sectionrule_created_at
rule_descriptionrule_domainrule_mitre_tactic
rule_mitre_techniquerule_namerule_origin
rule_parent_uuidrule_providerrule_resource_type
rule_resource_type_namerule_risk_factorrule_service
rule_severityrule_short_coderule_status
rule_subdomainrule_updated_atrule_updated_by
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_rule(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
"string"
]


Query suppression rules with filtering, sorting and pagination

Method GET
Route /cloud-policies/queries/suppression-rules/v1
Scope Cloud Security Policies: READ
PEP 8 query_suppression_rules
filter query · string
FQL expression to filter suppression rules. The allowed properties are:
Available values (11)
namedescriptiondomain
subdomainsuppression_expiration_datesuppression_reason
created_bycreated_atlast_modified_at
disabledgroups
limit query · integer
The maximum number of resources to return. The maximum allowed is 50.
offset query · integer
The number of results to skip before starting to return results.
sort query · string
Field to sort on. Sortable fields:
Available values (11)
namedescriptiondomain
subdomainsuppression_expiration_datesuppression_reason
created_bycreated_atlast_modified_at
disabledgroups
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_suppression_rules(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
"string"
]


Rename a section in a custom compliance framework

Method PATCH
Route /cloud-policies/entities/compliance/frameworks/section/v1
Scope Cloud Security Policies: WRITE
PEP 8 rename_section_compliance_framework
body body · dictionary
Full body payload as JSON formatted dictionary.
ids query · string
The uuid of compliance framework containing the section to rename
sectionName query · string
The current name of the section to rename
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.rename_section_compliance_framework(ids=id_list,
sectionName="string",
section_name="string")
print(response)
[
"string"
]


Assign rules to a compliance control (full replace)

Method PUT
Route /cloud-policies/entities/compliance/control-rule-assignments/v1
Scope Cloud Security Policies: WRITE
PEP 8 replace_control_rules
body body · dictionary
Full body payload as JSON formatted dictionary.
rule_ids body · array
The ids of the rules to replace.
ids query · string
The UUID of the compliance control to assign rules to
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.replace_control_rules(ids=id_list, rule_ids=id_list)
print(response)
[
"string"
]


Update a custom compliance control

Method PATCH
Route /cloud-policies/entities/compliance/controls/v1
Scope Cloud Security Policies: WRITE
PEP 8 update_compliance_control
body body · dictionary
Full body payload as JSON formatted dictionary.
description body · string
The description of hte custom compliance control.
name body · string
The name of the custom compliance control.
ids query · string
The uuid of compliance control to update
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_compliance_control(ids=id_list,
description="string",
name="string")
print(response)
[
{
"applicable_profiles": [],
"authority": "string",
"code": "string",
"control_type": "string",
"control_version": "string",
"description": "string",
"name": "string",
"origin": "string",
"requirement": "string",
"section_name": "string",
"security_framework": [],
"uuid": "string"
}
]


Update a custom compliance framework

Method PATCH
Route /cloud-policies/entities/compliance/frameworks/v1
Scope Cloud Security Policies: WRITE
PEP 8 update_compliance_framework
body body · dictionary
Full body payload as JSON formatted dictionary.
active body · boolean
Value to determine if the compliance framework will be active.
description body · string
The description of the new compliance framework.
name body · string
The name of the new compliance framework.
ids query · string
The uuids of compliance framework to update
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_compliance_framework(ids=id_list,
active=boolean,
description="string",
name="string")
print(response)
[
{
"active": false,
"authority": "string",
"description": "string",
"name": "string",
"uuid": "string",
"version": "string"
}
]


Update a rule

Method PATCH
Route /cloud-policies/entities/rules/v1
Scope Cloud Security Policies: WRITE
PEP 8 update_rule
body body · dictionary
Full body payload as JSON formatted dictionary.
alert_info body · string
The info of the alert.
attack_types body · array
The type of attacks.
category body · string
controls body · array
The authority and code of the rule.
description body · string
The description of the rule.
name body · string
The name of the rule.
rule_logic_list body · array
The logic list data.
severity body · integer
The severity level.
uuid body · string
The uuid of the rule to update.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
controls = [
{
"authority": "string",
"code": "string"
}
]
rule_logic_list = [
{
"logic": "string",
"platform": "string",
"remediation_info": "string",
"remediation_url": "string"
}
]
response = falcon.update_rule(alert_info="string",
attack_types=id_list,
controls=controls,
description="string",
name="string",
rule_logic_list=rule_logic_list,
severity=integer,
uuid="string")
print(response)
[
{
"alert_info": "string",
"attack_types": [],
"auto_remediable": false,
"category": "string",
"cid": "string",
"cloneable": false,
"controls": [],
"created_at": "string",
"created_by": "string",
"custom_configuration": {},
"deleted_at": "string",
"deleted_by": "string",
"deprecated": false,
"description": "string",
"domain": "string",
"logic": "string",
"logic_format": "string",
"mitre_tactics_id": "string",
"mitre_tactics_name": "string",
"mitre_tactics_url": "string",
"mitre_techniques_id": "string",
"mitre_techniques_name": "string",
"mitre_techniques_url": "string",
"mutable": "string",
"name": "string",
"origin": "string",
"overrides": [],
"parent_rule__pk": 0,
"parent_rule_short_code": 0,
"parent_rule_short_uuid": "string",
"platform": "string",
"provider": "string",
"remediation": "string",
"remediation_url": "string",
"resource_metadata": "string",
"resource_types": [],
"revision": 0,
"rule_logic_list": [],
"scope_asset_filter": {},
"scope_type": "string",
"severity": 0,
"short_code": 0,
"subdomain": "string",
"update_reason": "string",
"updated_at": "string",
"updated_by": "string",
"uuid": "string",
"visible": false
}
]


Update a rule override

Method PATCH
Route /cloud-policies/entities/rule-overrides/v1
Scope Cloud Security Policies: WRITE
PEP 8 update_rule_override
body body · dictionary
Full body payload as JSON formatted dictionary.
overrides body · array
The new rule override.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
overrides = [
{
"comment": "string",
"crn": "string",
"expires_at": "2025-11-10T21:16:14.315Z",
"override_type": "string",
"overrides_details": "string",
"reason": "string",
"rule_id": "string",
"target_region": "string"
}
]
response = falcon.update_rule_override(overrides=overrides)
print(response)
[
"string"
]


Update a suppression rule

Method PATCH
Route /cloud-policies/entities/suppression-rules/v1
Scope Cloud Security Policies: WRITE
PEP 8 update_suppression_rule
body body · dictionary
Full body payload as JSON formatted dictionary.
description body · string
Description of the suppression rule.
id body · string
Identifier of the suppression rule to update.
name body · string
Name of the suppression rule.
rule_selection_filter body · object
Filter criteria for selecting rules.
rule_selection_type body · string
Type of rule selection.
scope_asset_filter body · object
Filter criteria for scoping assets.
scope_type body · string
Type of scope for the rule.
suppression_comment body · string
Comment explaining the suppression.
suppression_expiration_date body · string
Expiration date for the suppression.
suppression_reason body · string
Reason for the suppression.
from falconpy import CloudPolicies
falcon = CloudPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
rule_selection_filter = {
"rule_ids": [
"string"
],
"rule_names": [
"string"
],
"rule_origins": [
"string"
],
"rule_providers": [
"string"
],
"rule_services": [
"string"
],
"rule_severities": [
"string"
]
}
scope_asset_filter = {
"account_ids": [
"string"
],
"cloud_group_ids": [
"string"
],
"cloud_providers": [
"string"
],
"regions": [
"string"
],
"resource_ids": [
"string"
],
"resource_names": [
"string"
],
"resource_types": [
"string"
],
"service_categories": [
"string"
],
"tags": [
"string"
]
}
response = falcon.update_suppression_rule(description="string",
id="string",
name="string",
rule_selection_filter=rule_selection_filter,
rule_selection_type="string",
scope_asset_filter=scope_asset_filter,
scope_type="string",
suppression_comment="string",
suppression_expiration_date="string",
suppression_reason="string")
print(response)
[
{
"created_at": "string",
"created_by": "string",
"deleted_at": "string",
"deleted_by": "string",
"description": "string",
"disabled": false,
"domain": "string",
"id": "string",
"name": "string",
"rule_ids": [],
"rule_selection_count": 0,
"rule_selection_filter": {},
"rule_selection_type": "string",
"scope_asset_filter": {},
"scope_type": "string",
"subdomain": "string",
"suppression_comment": "string",
"suppression_expiration_date": "string",
"suppression_reason": "string",
"update_reason": "string",
"updated_at": "string",
"updated_by": "string"
}
]