TasksQuery
Retrieves a list of policy tasks based on the provided query parameters. The body may include taskIds, taskStatuses, taskTypes, policyIds, policyNames, componentGroups, componentGroupResourceIds, and componentGroupResourceFqdns.
Filtering Behavior:
Every returned task must satisfy all non-empty filter dimensions (logical AND). Within each list field, multiple values are OR (match any). componentGroupResourceIds and componentGroupResourceFqdns are resolved together to instance resource IDs before matching the task's persisted target. If no task matches every active filter, the result list is empty.
Request JSON: Use the property componentGroups (plural) as a JSON array of strings (FLEET, MANAGEMENT, INSTANCE).
{
"componentGroupResourceFqdns": [
"string"
],
"componentGroupResourceIds": [
"string"
],
"componentGroups": [
"string"
],
"policyIds": [
"string"
],
"policyNames": [
"string"
],
"taskIds": [
"string"
],
"taskStatuses": [
"string"
],
"taskTypes": [
"string"
]
}
Component group resource FQDNs (resolved to instance IDs; AND with other non-empty dimensions)
Component group resource IDs (AND with other non-empty filter dimensions; OR within this list)
JSON componentGroups (plural): array of FLEET, MANAGEMENT, INSTANCE. Matches tasks whose persisted target overlaps (AND with other non-empty filters; OR within this list).
Policy IDs
Policy names (each name max length 255)
Task IDs
Task statuses
Task types