> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get SCA Results

Return the security SCA database of an agent.

<Note>
  External Documentation

  To learn more, visit the [Wazuh Server documentation](https://documentation.wazuh.com/current/user-manual/api/reference.html#operation/api.controllers.sca_controller.get_sca_agent).
</Note>

## Basic Parameters

<div className="integrations-table">
  | 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.<br /><br />**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. <br /><br />**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.<br /><br />**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.                                                                                                                                                                 |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter   | Description                   |
  | ----------- | ----------------------------- |
  | Description | Filter by policy description. |
  | References  | Filter by references.         |
</div>

## Example Output

```json theme={"dark"}
{
	"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
}
```

## Workflow Library Example

[Get Sca Results with Wazuh Server and Send Results Via Email](https://library.blinkops.com/workflows/get-sca-results-with-wazuh-server-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-sca-results-with-wazuh-server-and-send-results-via-email/canvas" />
</div>
