Skip to content

Zero Trust Assessment

The Zero Trust Assessment service collection provides operations for retrieving Zero Trust Assessment data across your environment. Query assessment scores by host, retrieve audit reports, search assessments by score ranges, and perform combined queries with FQL filtering and pagination.

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


OperationDescription
getAssessmentsByScoreV1
get_assessments_by_score
Get Zero Trust Assessment data for one or more hosts by providing a customer ID (CID) and a range of scores.
getAssessmentV1
get_assessment
Get Zero Trust Assessment data for one or more hosts by providing agent IDs (AID) and a customer ID (CID).
getAuditV1
get_audit
Get the Zero Trust Assessment audit report for one customer ID (CID).

Get Zero Trust Assessment data for one or more hosts by providing a customer ID (CID) and a range of scores.

Method GET
Route /zero-trust-assessment/queries/assessments/v1
Scope Zero Trust Assessment: READ
PEP 8 get_assessments_by_score
filter query · string
FQL formatted string containing the filter to use to limit results.
limit query · integer
The number of scores to return in this response (min: 1, max: 1000, default: 100). Use with the after parameter to manage pagination of results.
after query · string
A pagination token used with the limit parameter to manage pagination of results. On your first request, don’t provide an after token. On subsequent requests, provide the after token from the previous response to continue from that place in the results.
sort query · string
Sort accounts by their properties. A single sort field is allowed. Defaults to ascending. Supported sort option include:
Available values (1)
score
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ZeroTrustAssessment
falcon = ZeroTrustAssessment(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_assessments_by_score(after="string",
filter="string",
limit=integer)
print(response)
[
{
"aid": "string",
"score": 0
}
]


Get Zero Trust Assessment data for one or more hosts by providing agent IDs (AID) and a customer ID (CID).

Method GET
Route /zero-trust-assessment/entities/assessments/v1
Scope Zero Trust Assessment: READ
PEP 8 get_assessment
ids query · string or list of strings
One or more agent IDs, which you can find in the data.zta file, or the Falcon console.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ZeroTrustAssessment
falcon = ZeroTrustAssessment(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_assessment(ids=id_list)
print(response)
[
{
"aid": "string",
"assessment": {},
"assessment_items": {},
"cid": "string",
"event_platform": "string",
"modified_time": "string",
"product_type_desc": "string",
"sensor_file_status": "string",
"system_serial_number": "string"
}
]


Get the Zero Trust Assessment audit report for one customer ID (CID).

Method GET
Route /zero-trust-assessment/entities/audit/v1
Scope Zero Trust Assessment: READ
PEP 8 get_audit
from falconpy import ZeroTrustAssessment
falcon = ZeroTrustAssessment(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_audit()
print(response)
[
{
"average_overall_score": 0.0,
"cid": "string",
"num_aids": 0,
"platforms": []
}
]