> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xdr-5-api/compliance-controls/results.md).

# Results

Operations for retrieving compliance results and findings

## Get control failed results

> Get the failed findings and issues for a specific compliance control.\
> \
> \*\*Required license:\*\* Requires the Cortex Cloud Posture Management add-on.

```json
{"openapi":"3.0.3","info":{"title":"Compliance Controls API","version":"Cortex XDR 5.1"},"tags":[{"name":"Results","description":"Operations for retrieving compliance results and findings"}],"servers":[{"url":"https://{tenant}.xdr.{region}.paloaltonetworks.com","description":"Cortex tenant","variables":{"tenant":{"default":"api","description":"Tenant-specific subdomain"},"region":{"default":"us","description":"Deployment region","enum":["us","eu","uk","sg","jp","ca","au","in","gov"]}}}],"security":[{"XDRAuth":[],"XDRAuthToken":[]}],"components":{"securitySchemes":{"XDRAuth":{"type":"apiKey","in":"header","name":"x-xdr-auth-id","description":"API Key ID for authentication"}},"schemas":{"Findings":{"title":"Findings","type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}}},"Issues":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Severity name"},"pretty_name":{"type":"string"},"value":{"type":"integer","description":"The number of issues with this level of severity"},"ids":{"type":"array","description":"List of issue IDs with this level of severity","items":{"type":"string"}}}}},"Error":{"type":"object","properties":{"reply":{"type":"object","properties":{"err_code":{"type":"integer","description":"Error code"},"err_msg":{"type":"string","description":"Error message"},"err_extra":{"type":"object","description":"Additional error details"}}}}}},"responses":{"BadRequest":{"description":"Bad request - invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalServerError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/public_api/v1/compliance/get_control_failed_results":{"post":{"summary":"Get control failed results","description":"Get the failed findings and issues for a specific compliance control.\n\n**Required license:** Requires the Cortex Cloud Posture Management add-on.","operationId":"getControlFailedResults","tags":["Results"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["request_data"],"properties":{"request_data":{"type":"object","required":["control_revision","assessment_profile_revision","last_evaluation_time"],"properties":{"control_revision":{"type":"string","description":"Compliance control revision ID"},"assessment_profile_revision":{"type":"string","description":"Assessment profile revision ID"},"last_evaluation_time":{"type":"integer","format":"int64","description":"Last evaluation timestamp (epoch time in milliseconds)"}}}}}}}},"responses":{"200":{"description":"Successfully retrieved failed results","content":{"application/json":{"schema":{"type":"object","properties":{"reply":{"type":"object","properties":{"data":{"type":"object","properties":{"findings":{"type":"array","items":{"$ref":"#/components/schemas/Findings"}},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issues"}}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}}}
```

## Get rule failed results

> Get the failed findings and issues for a specific rule.\
> \
> \*\*Required license:\*\* Requires the Cortex Cloud Posture Management add-on.

```json
{"openapi":"3.0.3","info":{"title":"Compliance Controls API","version":"Cortex XDR 5.1"},"tags":[{"name":"Results","description":"Operations for retrieving compliance results and findings"}],"servers":[{"url":"https://{tenant}.xdr.{region}.paloaltonetworks.com","description":"Cortex tenant","variables":{"tenant":{"default":"api","description":"Tenant-specific subdomain"},"region":{"default":"us","description":"Deployment region","enum":["us","eu","uk","sg","jp","ca","au","in","gov"]}}}],"security":[{"XDRAuth":[],"XDRAuthToken":[]}],"components":{"securitySchemes":{"XDRAuth":{"type":"apiKey","in":"header","name":"x-xdr-auth-id","description":"API Key ID for authentication"}},"schemas":{"Findings":{"title":"Findings","type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}}},"Issues":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Severity name"},"pretty_name":{"type":"string"},"value":{"type":"integer","description":"The number of issues with this level of severity"},"ids":{"type":"array","description":"List of issue IDs with this level of severity","items":{"type":"string"}}}}},"Error":{"type":"object","properties":{"reply":{"type":"object","properties":{"err_code":{"type":"integer","description":"Error code"},"err_msg":{"type":"string","description":"Error message"},"err_extra":{"type":"object","description":"Additional error details"}}}}}},"responses":{"BadRequest":{"description":"Bad request - invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InternalServerError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/public_api/v1/compliance/get_rule_failed_results":{"post":{"summary":"Get rule failed results","description":"Get the failed findings and issues for a specific rule.\n\n**Required license:** Requires the Cortex Cloud Posture Management add-on.","operationId":"getRuleFailedResults","tags":["Results"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["request_data"],"properties":{"request_data":{"type":"object","required":["control_revision","assessment_profile_revision","last_evaluation_time","rule_id"],"properties":{"control_revision":{"type":"string","description":"Compliance control revision ID"},"assessment_profile_revision":{"type":"string","description":"Assessment profile revision ID"},"last_evaluation_time":{"type":"integer","format":"int64","description":"Last evaluation timestamp (epoch time in milliseconds)"},"rule_id":{"type":"string","description":"Rule ID"}}}}}}}},"responses":{"200":{"description":"Successfully retrieved rule failed results","content":{"application/json":{"schema":{"type":"object","properties":{"reply":{"type":"object","properties":{"data":{"type":"object","properties":{"findings":{"type":"array","items":{"$ref":"#/components/schemas/Findings"}},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issues"}}}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/xdr-5-api/compliance-controls/results.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
