External DocumentationTo learn more, visit the Wazuh Server documentation.
Basic Parameters
| Parameter | Description |
|---|---|
| Agent ID | The agent ID. |
| Distinct | Select to look for distinct values. |
| Fields | A comma-separated list, without any whitespace before or after the commas, of fields to return. Note: Use ’.’ for nested fields, for example: field1 , field2.nestedField1, field3 |
| Limit | Maximum number of elements to return. |
| Name | Filter by policy name. |
| Offset | The offset of the first element to return. |
| Pretty | Select to show results in human-readable format. |
| Query | A query to filter the results by. For example: status=active |
| Return All Pages | Automatically fetch all resources, page by page. |
| Search Text | A string used to filter elements containing the specified text. Note: To obtain a complementary search, use - at the beginning. |
| Sort | A comma-separated list, without any whitespace before or after the commas, of fields to sort by. Use +/- at the beginning to list in ascending or descending order. Use . for nested fields. |
| Wait For Complete | Select to disable timeout response. |
Advanced Parameters
| Parameter | Description |
|---|---|
| Description | Filter by policy description. |
| References | Filter by references. |
Example Output
{
"data": {
"affected_items": [
{
"description": "This document provides prescriptive guidance for establishing a secure configuration posture for Ubuntu Linux 20.04 LTS.",
"fail": 87,
"start_scan": "2022-09-27T08:07:02+00:00",
"references": "https://www.cisecurity.org/cis-benchmarks/",
"name": "CIS benchmark for Ubuntu Linux 20.04 LTS",
"pass": 56,
"score": 39,
"end_scan": "2022-09-27T08:07:02+00:00",
"policy_id": "cis_ubuntu20-04",
"total_checks": 191,
"hash_file": "fb41fe9660f4320aaed0c3c292c8602953df7f8c42b37b724855f9005c43fafc",
"invalid": 48
}
],
"total_affected_items": 1,
"total_failed_items": 0,
"failed_items": []
},
"message": "All selected SCA information was returned",
"error": 0
}