Skip to content

Cloud Security

The Cloud Security service collection provides operations for managing cloud risk visibility and Cloud Group organization in your CrowdStrike Falcon environment. Retrieve combined cloud risk details, query and manage Cloud Groups with full CRUD support, and organize cloud assets by selectors.

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


OperationDescription
combined-cloud-risks
combined_cloud_risks
Gets cloud risks with full details based on filters and sort criteria
CreateCloudGroupExternal
create_cloud_group
Create a Cloud Group.
DeleteCloudGroupsExternal
delete_cloud_groups
Delete Cloud Groups in batch
ListCloudGroupIDsExternal
list_group_ids
Query Cloud Groups and returns IDs
ListCloudGroupsByIDExternal
list_cloud_groups_by_id
List Cloud Groups By ID
ListCloudGroupsExternal
list_cloud_groups
Query Cloud Groups and returns entities
UpdateCloudGroupExternal
update_cloud_group
Update Cloud Group

Gets cloud risks with full details based on filters and sort criteria

Method GET
Route /cloud-security-risks/combined/cloud-risks/v1
Scope Cloud Security API Risks: READ
PEP 8 combined_cloud_risks
filter query · string
FQL string to filter results in Falcon Query Language (FQL). Supported fields:
Available values (21)
account_idaccount_nameasset_gcrn
asset_idasset_nameasset_region
asset_typecloud_groupcloud_provider
first_seenlast_seenresolved_at
risk_factorrule_idrule_name
service_categoryseveritystatus
suppressed_bysuppressed_reasontags
sort query · string
The field to sort on. Use |asc or |desc suffix to specify sort direction. Supported fields:
Available values (14)
account_idaccount_nameasset_id
asset_nameasset_regionasset_type
cloud_providerfirst_seenlast_seen
resolved_atrule_nameservice_category
severitystatus
limit query · integer
The maximum number of items to return. When not specified or 0, 500 is used. When larger than 1000, 1000 is used.
offset query · integer
Offset returned risks
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudSecurity
falcon = CloudSecurity(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.combined_cloud_risks(filter="string",
sort="string",
limit=integer,
offset=integer)
print(response)
[
{
"account_id": "string",
"account_name": "string",
"adversaries": [],
"agv2_id": "string",
"asset_gcrn": "string",
"asset_id": "string",
"asset_name": "string",
"asset_region": "string",
"asset_tags": [],
"asset_type": "string",
"cid": "string",
"cloud_groups": [],
"comments": [],
"crn": "string",
"disabled": false,
"first_seen": "string",
"graph": {},
"id": "string",
"insight_categories": [],
"last_seen": "string",
"provider": "string",
"resolved_at": "string",
"risk_factors": [],
"rule_description": "string",
"rule_id": "string",
"rule_name": "string",
"score": 0,
"service_category": "string",
"severity": "string",
"status": "string",
"suppression": {}
}
]


Create a Cloud Group.

Method POST
Route /cloud-security/entities/cloud-groups/v1
Scope Assets: WRITE
PEP 8 create_cloud_group
body body · dictionary
Full body payload as JSON formatted dictionary.
business_impact body · string
Business Impact is one of:
Available values (3)
highmoderatelow
business_unit body · string
Business Unit is one of:
Available values (7)
thebusinesscontext
fieldofthe
group
description body · string
environment body · string
Environment is one of:
Available values (4)
devteststage
prod
name body · string
Group name is unique and case insensitive.
owners body · array
The owners field contains a list of user emails.
selectors body · object
The Selectors for the cloud group.
from falconpy import CloudSecurity
falcon = CloudSecurity(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
selectors = {
"cloud_resources": [
{
"account_ids": [
"string"
],
"cloud_provider": "aws",
"filters": {
"region": [
"string"
],
"tags": [
"string"
]
}
}
],
"images": [
{
"filters": {
"repository": [
"string"
],
"tag": [
"string"
]
},
"registry": "string"
}
]
}
response = falcon.create_cloud_group(business_impact="string",
business_unit="string",
description="string",
environment="string",
name="string",
owners=id_list,
selectors=selectors)
print(response)
[
"string"
]


Delete Cloud Groups in batch

Method DELETE
Route /cloud-security/entities/cloud-groups/v1
Scope Assets: WRITE
PEP 8 delete_cloud_groups
ids query · string or list of strings
Cloud Groups UUIDs to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudSecurity
falcon = CloudSecurity(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_cloud_groups(ids=id_list)
print(response)
{
"errors": [
{
"code": "string",
"id": "string",
"message": "string"
}
],
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total": 0
},
"powered_by": "string",
"query_time": 0.0,
"trace_id": "string"
},
"resources": [
"string"
]
}


Query Cloud Groups and returns IDs

Method GET
Route /cloud-security/queries/cloud-groups/v1
Scope Assets: READ
PEP 8 list_group_ids
filter query · string
A valid FQL filter. Supports filtering groups by:
Available values (11)
namedescriptioncreated_at
updated_atcloud_provideraccount_id
regioncloud_provider_tagimage_registry
image_repositoryimage_tag
sort query · string
A valid sort string.
offset query · string
The starting position of the list operation.
limit query · string
The maximum number of cloud groups to retrieve.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudSecurity
falcon = CloudSecurity(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_group_ids(filter="string",
sort="string",
offset="string",
limit="string")
print(response)
[
"string"
]


List Cloud Groups By ID

Method GET
Route /cloud-security/entities/cloud-groups/v1
Scope Assets: READ
PEP 8 list_cloud_groups_by_id
ids query · string or list of strings
Cloud Groups UUIDs.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudSecurity
falcon = CloudSecurity(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.list_cloud_groups_by_id(ids=id_list)
print(response)
[
{
"business_impact": "string",
"business_unit": "string",
"created_at": "string",
"created_by": "string",
"description": "string",
"environment": "string",
"id": "string",
"name": "string",
"owners": [],
"selectors": {},
"updated_at": "string",
"updated_by": "string"
}
]


Query Cloud Groups and returns entities

Method GET
Route /cloud-security/combined/cloud-groups/v1
Scope Assets: READ
PEP 8 list_cloud_groups
filter query · string
A valid FQL filter. Supports filtering groups by:
Available values (11)
namedescriptioncreated_at
updated_atcloud_provideraccount_id
regioncloud_provider_tagimage_registry
image_repositoryimage_tag
sort query · string
A valid sort string.
offset query · string
The starting position of the list operation.
limit query · string
The maximum number of cloud groups to retrieve.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import CloudSecurity
falcon = CloudSecurity(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_cloud_groups(filter="string",
sort="string",
offset="string",
limit="string")
print(response)
[
{
"business_impact": "string",
"business_unit": "string",
"created_at": "string",
"created_by": "string",
"description": "string",
"environment": "string",
"id": "string",
"name": "string",
"owners": [],
"selectors": {},
"updated_at": "string",
"updated_by": "string"
}
]


Update Cloud Group

Method PATCH
Route /cloud-security/entities/cloud-groups/v1
Scope Assets: WRITE
PEP 8 update_cloud_group
body body · dictionary
Full body payload as JSON formatted dictionary.
business_impact body · string
The new Business Impact for the group. It will be deleted if the value is sent empty.
Available values (4)
highmoderate
low
business_unit body · string
Business Impact is one of:
Available values (7)
thebusinesscontext
fieldofthe
group
description body · string
The new Description for the group.
environment body · string
Environment is one of:
Available values (5)
devtest
stageprod
id body · string
The UUID of the group to be updated.
name body · string
Group name is unique and case insensitive.
owners body · array
The owners field contains a list of user emails. An empty list of owners means that the group will be updated to have no owners.
selectors body · object
The new Selectors for the cloud group. This doesn’t support partial updates and always must include **all existing selectors**.
from falconpy import CloudSecurity
falcon = CloudSecurity(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
selectors = {
"cloud_resources": [
{
"account_ids": [
"string"
],
"cloud_provider": "aws",
"filters": {
"region": [
"string"
],
"tags": [
"string"
]
}
}
],
"images": [
{
"filters": {
"repository": [
"string"
],
"tag": [
"string"
]
},
"registry": "string"
}
]
}
response = falcon.update_cloud_group(business_impact="string",
business_unit="string",
description="string",
environment="string",
name="string",
owners=id_list,
selectors=selectors)
print(response)
[
"string"
]