Skip to content

Host Group

The Host Group service collection provides operations for creating and managing Host Groups in your CrowdStrike Falcon environment. Search for group members and groups, create, update, delete, and perform actions on Host Groups.

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


OperationDescription
createHostGroups
create_host_groups
Create Host Groups by specifying details about the group to create
deleteHostGroups
delete_host_groups
Delete a set of Host Groups by specifying their IDs
getHostGroups
get_host_groups
Retrieve a set of Host Groups by specifying their IDs
performGroupAction
perform_group_action
Perform the specified action on the Host Groups specified in the request
queryCombinedGroupMembers
query_combined_group_members
Search for members of a Host Group in your environment by providing an FQL filter and paging details.
queryCombinedHostGroups
query_combined_host_groups
Search for Host Groups in your environment by providing an FQL filter and paging details.
queryGroupMembers
query_group_members
Search for members of a Host Group in your environment by providing an FQL filter and paging details.
queryHostGroups
query_host_groups
Search for Host Groups in your environment by providing an FQL filter and paging details.
updateHostGroups
update_host_groups
Update Host Groups by specifying the ID of the group and details to update

Create Host Groups by specifying details about the group to create

Method POST
Route /devices/entities/host-groups/v1
Scope Host groups: WRITE
PEP 8 create_host_groups
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
A collection of device groups to create
assignment_rule body · string
Assignment rule to apply.
description body · string
Description of the host group.
group_type body · string
Type of Host Group to create.
name body · string
The Host Group name.
from falconpy import HostGroup
falcon = HostGroup(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_host_groups(assignment_rule="string",
description="string",
group_type="string",
name="string")
print(response)
[
{
"assignment_rule": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"group_type": "string",
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string"
}
]


Delete a set of Host Groups by specifying their IDs

Method DELETE
Route /devices/entities/host-groups/v1
Scope Host groups: WRITE
PEP 8 delete_host_groups
ids query · string or list of strings
The IDs of the Host Groups to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import HostGroup
falcon = HostGroup(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_host_groups(ids=id_list)
print(response)
[
"string"
]


Retrieve a set of Host Groups by specifying their IDs

Method GET
Route /devices/entities/host-groups/v1
Scope Host groups: READ
PEP 8 get_host_groups
ids query · string or list of strings
The IDs of the Host Groups to return
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import HostGroup
falcon = HostGroup(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_host_groups(ids=id_list)
print(response)
[
{
"assignment_rule": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"group_type": "string",
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string"
}
]


Perform the specified action on the Host Groups specified in the request

Method POST
Route /devices/entities/host-group-actions/v1
Scope Host groups: WRITE
PEP 8 perform_group_action
body body · dictionary
Full body payload as JSON formatted dictionary.
action_parameters body · array
List of dictionaries containing action specific parameter settings.
ids body · array
List of host group IDs to perform an action against.
action_name query · string
The action to perform
Available values (2)
add-hostsremove-hosts
disable_hostname_check query · boolean
Bool to disable hostname check on add-member
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
filter body · string
Filter to use to specify hosts to apply this action to. FQL formatted string. Overridden if action_parameters is specified.
from falconpy import HostGroup
falcon = HostGroup(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
action_parameters = [
{
"name": "filter",
"value": "string"
}
]
response = falcon.perform_group_action(action_name="string",
action_parameters=action_parameters,
disable_hostname_check=boolean,
filter="string",
ids=id_list)
print(response)
[
{
"assignment_rule": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"group_type": "string",
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string"
}
]


Search for members of a Host Group in your environment by providing an FQL filter and paging details.

Method GET
Route /devices/combined/host-group-members/v1
Scope Host groups: READ
PEP 8 query_combined_group_members
id query · string
The ID of the Host Group to search for members of
filter query · string
FQL query expression that should be used to limit the results.
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-5000]
sort query · string
The property to sort by.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import HostGroup
falcon = HostGroup(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_combined_group_members(filter="string",
id="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
{
"agent_load_flags": "string",
"agent_local_time": "string",
"agent_version": "string",
"base_image_version": "string",
"bios_manufacturer": "string",
"bios_version": "string",
"build_number": "string",
"chassis_type": "string",
"chassis_type_desc": "string",
"cid": "string",
"cloud_service_compartment_id": "string",
"config_id_base": "string",
"config_id_build": "string",
"config_id_platform": "string",
"connection_ip": "string",
"connection_mac_address": "string",
"cpu_signature": "string",
"cpu_vendor": "string",
"criticality": "string",
"default_gateway_ip": "string",
"deployment_type": "string",
"detection_suppression_status": "string",
"device_id": "string",
"device_policies": {},
"email": "string",
"external_ip": "string",
"filesystem_containment_status": "string",
"first_login_timestamp": "string",
"first_login_user": "string",
"first_seen": "string",
"group_hash": "string",
"groups": [],
"host_deleted_status": "string",
"host_hidden_status": "string",
"host_utc_offset": "string",
"hostname": "string",
"instance_id": "string",
"internet_exposure": "string",
"k8s_cluster_git_version": "string",
"k8s_cluster_id": "string",
"k8s_cluster_version": "string",
"kernel_version": "string",
"last_login_timestamp": "string",
"last_login_uid": "string",
"last_login_user": "string",
"last_login_user_sid": "string",
"last_reboot": "string",
"last_seen": "string",
"license_activation_state": "string",
"linux_sensor_mode": "string",
"local_ip": "string",
"mac_address": "string",
"machine_domain": "string",
"major_version": "string",
"managed_apps": {},
"meta": {},
"migration_completed_time": "string",
"minor_version": "string",
"modified_timestamp": "string",
"notes": [],
"os_build": "string",
"os_product_name": "string",
"os_version": "string",
"ou": [],
"platform_id": "string",
"platform_name": "string",
"pod_annotations": [],
"pod_host_ip4": "string",
"pod_host_ip6": "string",
"pod_hostname": "string",
"pod_id": "string",
"pod_ip4": "string",
"pod_ip6": "string",
"pod_labels": [],
"pod_name": "string",
"pod_namespace": "string",
"pod_service_account_name": "string",
"pointer_size": "string",
"policies": [],
"product_type": "string",
"product_type_desc": "string",
"provision_status": "string",
"reduced_functionality_mode": "string",
"release_group": "string",
"rtr_state": "string",
"safe_mode": "string",
"serial_number": "string",
"service_pack_major": "string",
"service_pack_minor": "string",
"service_provider": "string",
"service_provider_account_id": "string",
"site_name": "string",
"slow_changing_modified_timestamp": "string",
"status": "string",
"system_manufacturer": "string",
"system_product_name": "string",
"tags": [],
"zone_group": "string"
}
]


Search for Host Groups in your environment by providing an FQL filter and paging details.

Method GET
Route /devices/combined/host-groups/v1
Scope Host groups: READ
PEP 8 query_combined_host_groups
filter query · string
FQL query expression that should be used to limit the results.
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-5000]
sort query · string
The property to sort by.
Available values (12)
created_by.asccreated_by.desccreated_timestamp.asc
created_timestamp.descgroup_type.ascgroup_type.desc
modified_by.ascmodified_by.descmodified_timestamp.asc
modified_timestamp.descname.ascname.desc
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import HostGroup
falcon = HostGroup(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_combined_host_groups(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
{
"assignment_rule": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"group_type": "string",
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string"
}
]


Search for members of a Host Group in your environment by providing an FQL filter and paging details.

Method GET
Route /devices/queries/host-group-members/v1
Scope Host groups: READ
PEP 8 query_group_members
id query · string
The ID of the Host Group to search for members of
filter query · string
FQL query expression that should be used to limit the results.
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-5000]
sort query · string
The property to sort by.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import HostGroup
falcon = HostGroup(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_group_members(filter="string",
id="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
"string"
]


Search for Host Groups in your environment by providing an FQL filter and paging details.

Method GET
Route /devices/queries/host-groups/v1
Scope Host groups: READ
PEP 8 query_host_groups
filter query · string
FQL query expression that should be used to limit the results.
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-5000]
sort query · string
The property to sort by.
Available values (12)
created_by.asccreated_by.desccreated_timestamp.asc
created_timestamp.descgroup_type.ascgroup_type.desc
modified_by.ascmodified_by.descmodified_timestamp.asc
modified_timestamp.descname.ascname.desc
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import HostGroup
falcon = HostGroup(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_host_groups(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
"string"
]


Update Host Groups by specifying the ID of the group and details to update

Method PATCH
Route /devices/entities/host-groups/v1
Scope Host groups: WRITE
PEP 8 update_host_groups
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
A collection of groups to update
assignment_rule body · string
Assignment rule to apply.
description body · string
Description of the host group.
id body · string
Host Group ID to be updated.
name body · string
The Host Group name.
from falconpy import HostGroup
falcon = HostGroup(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_host_groups(assignment_rule="string",
description="string",
id="string",
name="string")
print(response)
[
{
"assignment_rule": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"group_type": "string",
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string"
}
]