> 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
