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.4.8
PowerShellv2.2.9
Gov0.20.0
TypeScriptv0.6.0
Rustv0.7.0
Rubyv1.2.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.

GET /device-content/entities/states/v1
Scope Device Content: READ Consumes · Produces application/json
PEP 8 get_states
NameTypeData typeDescription
idsqueryarray (string)The IDs of the devices to fetch the content state of.
parametersquerydictionaryFull query string parameters payload in JSON format. Not required if 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)

Query for the content state of the host.

GET /device-content/queries/states/v1
Scope Device Content: READ Consumes · Produces application/json
PEP 8 query_states
NameTypeData typeDescription
filterquerystringThe FQL search filter.
limitqueryintegerThe max number of resource ids to return.
sortquerystringWhat field to sort the results on.
offsetqueryintegerThe offset token returned from the previous query. If none was returned, there are no more pages to the result set.
parametersquerydictionaryFull query string parameters payload in JSON format. Not required if 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)