> 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/cortex-cloud-api/compliance-controls/reports.md).

# Reports

Operations for managing reports

## Get compliance reports

> Retrieve archived compliance assessment reports with optional filtering, sorting and pagination.\
> \- The response is concatenated using AND condition (OR is not supported)\
> \- The maximum result set size is >100\
> \- Offset is the zero-based number of assessment profiles from the start of the result set\
> \
> \*\*Required license:\*\* Cortex Cloud Runtime Security or Cortex Cloud Posture Management.<br>

```json
{"openapi":"3.0.3","info":{"title":"Compliance Controls API","version":"Cortex Cloud"},"tags":[{"name":"Reports","description":"Operations for managing reports"}],"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":{"ReportFilter":{"type":"object","required":["field","operator","value"],"properties":{"field":{"enum":["standard_name","assessment_profile_name","asset_group_name","score","evaluation_time"],"description":"Identifies the compliance report field the filter should match. Filters are based on the following keywords:\n- `standard_name`: Standard name\n- `assessment_profile_name`: Assessment profile name\n- `asset_group_name`: Asset Group name\n- `score`: Compliance score\n- `evaluation_time`: Evaluation time"},"operator":{"enum":["eq","neq","contains","not_contains","gte","lte","range","relative_timestamp"],"description":"Identifies the comparison operator you want to use for this filter. Valid keywords are:\n\n`eq` / `neq` / `contains` / `not_contains`: \n- `standard_name`, `assessment_profile_name`, `asset_group_name`: String\n\n`gte` / `lte` / `range` / `relative_timestamp`: \n- `evaluation_time``: Integer in timestamp epoch milliseconds\n\n`gte` / `lte` / `eq` / `neq`:\n- `score`: Integer"},"value":{"oneOf":[{"type":"string","description":"When the `field` value is one of the following, the `value` is type string: `standard_name`, `assessment_profile_name`, `asset_group_name`"},{"type":"integer","description":"When the `field` value is one of the following, the `value` is type integer: `evaluation_time`, `score`"}],"description":"Value that this filter must match. The contents of this field will differ depending on the assessment profile `field` that you specified for this filter."}}},"ComplianceReport":{"type":"object","description":"Archived compliance assessment report"},"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":{"ReportsBadRequest":{"description":"Bad request - invalid input parameters for reports","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_reports":{"post":{"summary":"Get compliance reports","description":"Retrieve archived compliance assessment reports with optional filtering, sorting and pagination.\n- The response is concatenated using AND condition (OR is not supported)\n- The maximum result set size is >100\n- Offset is the zero-based number of assessment profiles from the start of the result set\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management.\n","operationId":"getReports","tags":["Reports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["request_data"],"properties":{"request_data":{"type":"object","properties":{"filters":{"type":"array","description":"Optional filters to apply to the reports","items":{"$ref":"#/components/schemas/ReportFilter"}},"sort":{"type":"object","description":"Sorting configuration","properties":{"field":{"type":"string","enum":["standard_name","assessment_profile_name","asset_group_name","score","evaluation_time"],"default":"evaluation_time","description":"Field to sort by"},"keyword":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort direction"}}},"search_from":{"type":"integer","minimum":0,"default":0,"description":"Starting index for pagination"},"search_to":{"type":"integer","minimum":1,"description":"Ending index for pagination"}}}}}}}},"responses":{"200":{"description":"Successfully retrieved compliance reports","content":{"application/json":{"schema":{"type":"object","properties":{"reply":{"type":"object","properties":{"total_count":{"type":"integer","description":"Total number of reports in the archive"},"result_count":{"type":"integer","description":"Number of reports returned in this response (filter + paging)"},"filter_count":{"type":"integer","description":"Number of reports matching the filter criteria"},"reports":{"type":"array","description":"List of compliance reports","items":{"$ref":"#/components/schemas/ComplianceReport"}}}}}}}}},"400":{"$ref":"#/components/responses/ReportsBadRequest"},"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/cortex-cloud-api/compliance-controls/reports.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.
