Skip to content

Device Content

The Device Content service collection provides operations for retrieving and querying host content state information. Fetch the content state for specific device IDs, or query hosts by FQL filter to find devices matching particular content state criteria.

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


OperationDescription
entities.states.v1
get_states
Retrieve the host content state for a number of ids between 1 and 100.
queries.states.v1
query_states
Query for the content state of the host.

Retrieve the host content state for a number of ids between 1 and 100.

Method GET
Route /device-content/entities/states/v1
Scope Device Content: READ
PEP 8 get_states
ids query · string or list of strings
The ids of the devices to fetch the content state of.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import DeviceContent
falcon = DeviceContent(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_states(ids=id_list)
print(response)
[
{
"cid": "string",
"content_update_policy_applied_date": "string",
"content_update_policy_id": "string",
"device_id": "string",
"groups": [],
"hidden_status": "string",
"hostname": "string",
"last_seen": "string",
"platform_name": "string",
"rapid_response_content": {},
"reduced_functionality_mode": "string",
"sensor_operations": {},
"system_critical": {},
"vulnerability_management": {}
}
]


Query for the content state of the host.

Method GET
Route /device-content/queries/states/v1
Scope Device Content: READ
PEP 8 query_states
limit query · integer
The max number of resource ids to return.
sort query · string
What field to sort the results on.
offset query · integer
The offset token returned from the previous query. If none was returned, there are no more pages to the result set.
filter query · string
The FQL search filter.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import DeviceContent
falcon = DeviceContent(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_states(limit=integer,
sort="string",
offset=integer,
filter="string")
print(response)
[
"string"
]