> 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/xsiam-api/compliance-controls/compliance-assets.md).

# Compliance Assets

Operations for retrieving compliance assets

## Get compliance assets

> Retrieve compliance assets with required assessment profile revision and last evaluation time, with optional filtering, sorting and pagination.\
> \
> \*\*Filtering Support:\*\*\
> \- \*\*String fields\*\* (\`asset\_name\`, \`rule\_name\`, \`control\`): \`eq\`, \`neq\`, \`contains\`, \`not\_contains\`\
> \- \*\*Status fields\*\* (\`asset\_type\`, \`status\`, \`severity\`, \`rule\_type\`): \`eq\`, \`neq\`\
> \- Status valid values: \[\`FAILED\`, \`PASSED\`, \`NOT\_ASSESSED\`]\
> \- Severity valid values: \[\`low\`, \`medium\`, \`high\`, \`critical\`]\
> \
> \*\*Sorting Support:\*\*\
> \- Available fields: \`asset\_name\`, \`asset\_type\`, \`status\`, \`rule\_name\`, \`control\`, \`severity\`\
> \- Sort orders: \`asc\`, \`desc\`\
> \- Default: \`asset\_name\` in ascending order\
> \
> \*\*Pagination:\*\* (max number of elements is 100)\
> \
> \*\*Required license:\*\* Cortex Cloud Runtime Security or Cortex Cloud Posture Management

```json
{"openapi":"3.0.3","info":{"title":"Compliance Controls API","version":"Cortex XSIAM 3.5"},"tags":[{"name":"Compliance Assets","description":"Operations for retrieving compliance assets"}],"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":{"GetAssetsRequest":{"type":"object","required":["request_data"],"properties":{"request_data":{"type":"object","required":["assessment_profile_revision","last_evaluation_time"],"properties":{"assessment_profile_revision":{"type":"string","description":"Assessment profile revision identifier"},"last_evaluation_time":{"type":"integer","format":"int64","description":"Last evaluation timestamp in epoch format"},"filters":{"type":"array","description":"Array of filter objects for filtering assets","items":{"$ref":"#/components/schemas/AssetFilterObject"}},"sort":{"$ref":"#/components/schemas/AssetSortObject"},"search_from":{"type":"integer","minimum":0,"default":0,"description":"Starting index for pagination"},"search_to":{"type":"integer","minimum":1,"default":100,"description":"Ending index for pagination"}}}}},"AssetFilterObject":{"type":"object","description":"Filter object for querying compliance assets","required":["field","operator","value"],"properties":{"field":{"type":"string","enum":["asset_name","asset_type","status","rule_name","control","severity","rule_type","SEVERITY","ASSET_NAME","ASSET_TYPE","STATUS","RULE_NAME","CONTROL","RULE_TYPE"],"description":"Field to filter on"},"operator":{"type":"string","description":"Filter operator to apply"},"value":{"type":"string","description":"Value to filter by"}},"allOf":[{"if":{"properties":{"field":{"enum":["asset_name","rule_name","control","ASSET_NAME","RULE_NAME","CONTROL"]}}},"then":{"properties":{"operator":{"enum":["eq","neq","contains","not_contains"]}}}},{"if":{"properties":{"field":{"enum":["asset_type","status","severity","rule_type","ASSET_TYPE","STATUS","SEVERITY","RULE_TYPE"]}}},"then":{"properties":{"operator":{"enum":["eq","neq"]}}}},{"if":{"properties":{"field":{"enum":["status","STATUS"]}}},"then":{"properties":{"value":{"enum":["FAILED","PASSED","NOT_ASSESSED"]}}}},{"if":{"properties":{"field":{"enum":["severity","SEVERITY"]}}},"then":{"properties":{"value":{"enum":["low","medium","high","critical"]}}}}]},"AssetSortObject":{"type":"object","properties":{"field":{"type":"string","enum":["asset_name","asset_type","status","rule_name","control","severity"],"description":"Field to sort by","default":"asset_name"},"keyword":{"type":"string","enum":["asc","desc"],"default":"asc","description":"Sort direction"}}},"AssetsResponse":{"type":"object","properties":{"reply":{"type":"object","properties":{"total_count":{"type":"integer","description":"Total number of assets available"},"result_count":{"type":"integer","description":"Number of assets matching the applied filters + paging"},"filter_count":{"type":"integer","description":"Number of assets matching the applied filters"},"assets":{"type":"array","description":"Array of compliance assets","items":{"$ref":"#/components/schemas/ComplianceAsset"}}}}}},"ComplianceAsset":{"type":"object","description":"Compliance asset information","properties":{"ASSET_ID":{"type":"string","description":"Identifier for the asset"},"ASSET_NAME":{"type":"string","description":"Name of the asset"},"ASSET_TYPE":{"type":"string","description":"Type of the asset"},"STATUS":{"type":"string","enum":["FAILED","PASSED","NOT_ASSESSED"],"description":"Compliance status of the asset"},"RULE_NAME":{"type":"string","description":"Name of the compliance rule"},"CONTROL":{"type":"string","description":"Associated compliance control"},"RULE_REVISION_ID":{"type":"string","description":"Identifier for the compliance rule"},"CONTROL_REVISION_ID":{"type":"integer","format":"int64","description":"Identifier for the associated compliance control"},"SOURCE":{"type":"string","description":"Asset source"},"SEVERITY":{"type":"string","enum":["low","medium","high","critical"],"description":"Severity level of the compliance issue"},"RULE_TYPE":{"type":"string","description":"Type of the compliance rule"},"PROVIDER":{"type":"string","description":"Cloud provider"},"REGION":{"type":"string","description":"Geographic region"},"REALM":{"type":"string","description":"Realm identifier"},"TAGS":{"type":"object","additionalProperties":{"type":"string"},"description":"Asset tags"},"ORGANIZATION":{"type":"string","nullable":true,"description":"Organization identifier"},"ASSET_STRONG_ID":{"type":"string","description":"Strong identifier for the asset"}}},"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"}}}}},"ErrorResponse":{"type":"object","properties":{"reply":{"type":"object","properties":{"err_code":{"type":"integer","description":"Error code"},"err_msg":{"type":"string","description":"Error message describing what went wrong"},"err_extra":{"type":"object","description":"Additional error details"}},"required":["err_code","err_msg"]}}}},"responses":{"BadRequest":{"description":"Bad request - invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Access denied - insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"InternalServerError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/public_api/v1/compliance/get_assets":{"post":{"summary":"Get compliance assets","description":"Retrieve compliance assets with required assessment profile revision and last evaluation time, with optional filtering, sorting and pagination.\n\n**Filtering Support:**\n- **String fields** (`asset_name`, `rule_name`, `control`): `eq`, `neq`, `contains`, `not_contains`\n- **Status fields** (`asset_type`, `status`, `severity`, `rule_type`): `eq`, `neq`\n- Status valid values: [`FAILED`, `PASSED`, `NOT_ASSESSED`]\n- Severity valid values: [`low`, `medium`, `high`, `critical`]\n\n**Sorting Support:**\n- Available fields: `asset_name`, `asset_type`, `status`, `rule_name`, `control`, `severity`\n- Sort orders: `asc`, `desc`\n- Default: `asset_name` in ascending order\n\n**Pagination:** (max number of elements is 100)\n\n**Required license:** Cortex Cloud Runtime Security or Cortex Cloud Posture Management","operationId":"getComplianceAssets","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAssetsRequest"}}}},"responses":{"200":{"description":"Successfully retrieved compliance assets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}},"tags":["Compliance Assets"]}}}}
```


---

# 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/xsiam-api/compliance-controls/compliance-assets.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.
