> 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/aspm-cicd-and-application-security/criteria.md).

# Criteria

APIs for managing Criteria

## Get all criteria

> Retrieves a paginated list of all criteria.\
> \
> \> #### Required license:\
> \>\
> \> Cortex XDR with the Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security Add-on.<br>

```json
{"openapi":"3.0.0","info":{"title":"ASPM, CICD and Application Security APIs","version":"Cortex XDR 5.2"},"tags":[{"name":"Criteria","description":"APIs for managing Criteria"}],"servers":[{"url":"https://api-yourfqdn"}],"security":[],"paths":{"/public_api/appsec/v1/application/criteria/all":{"get":{"operationId":"GetAllCriteria","description":"Retrieves a paginated list of all criteria.\n\n> #### Required license:\n>\n> Cortex XDR with the Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security Add-on.\n","summary":"Get all criteria","tags":["Criteria"],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginationResponse_CriteriaDTO_"}}}}},"parameters":[{"in":"query","name":"page","required":false,"description":"Current page number in the paginated response.","schema":{"format":"double","type":"number"}},{"in":"query","name":"pageSize","description":"Total number of items in the current page.","required":false,"schema":{"format":"double","type":"number"}}]}}},"components":{"schemas":{"PaginationResponse_CriteriaDTO_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CriteriaDTO"},"type":"array"},"currentPage":{"type":"number","format":"double","description":"Current page number in the paginated response."},"totalPages":{"type":"number","format":"double","description":"Total number of pages for the paginated response."},"pageSize":{"type":"number","format":"double","description":"Number of entries in each page."},"totalItems":{"type":"number","format":"double","description":"Total number of items in the response."}},"required":["items","currentPage","pageSize","totalItems"],"type":"object","additionalProperties":false},"CriteriaDTO":{"anyOf":[{"$ref":"#/components/schemas/CriteriaDTOCode"},{"$ref":"#/components/schemas/CriteriaDTOCloud"}]},"CriteriaDTOCode":{"type":"object","additionalProperties":false,"description":"Code Criteria details.","title":"Code Criteria","required":["id","name","creationMethod","createdBy","createdAt","type","config"],"properties":{"id":{"type":"string","description":"Unique Id of the criteria."},"name":{"type":"string","description":"Unique name of the criteria."},"description":{"type":"string","description":"Criteria description."},"creationMethod":{"$ref":"#/components/schemas/CriteriaCreationMethod"},"createdBy":{"type":"string","description":"Owner of the criteria."},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the criteria was created."},"lastUpdated":{"type":"string","format":"date-time","description":"Timestamp when the criteria was updated."},"deletedAt":{"type":"string","format":"date-time","description":"Timestamp when the criteria was deleted."},"metadata":{"$ref":"#/components/schemas/CriteriaMetadata"},"type":{"$ref":"#/components/schemas/CriteriaType.Code"},"config":{"$ref":"#/components/schemas/CodeCriteriaConfig"}}},"CriteriaCreationMethod":{"enum":["manual","automatic"],"type":"string","description":"Creation method for the criteria. Possible values:\n -`manual`: For the criteria created manually.\n -`automatic`: Criteria that are automatically created."},"CriteriaMetadata":{"type":"object","additionalProperties":false,"description":"Additional metadata for the criteria.","properties":{"applicationCount":{"type":"number","format":"double","description":"The number of associated applications."},"assetCount":{"type":"number","format":"double","description":"The number of associated assets."},"refreshStatus":{"$ref":"#/components/schemas/RefreshStatus"},"deletedFromUai":{"type":"boolean","description":"Indicates whether the resource has been deleted from UAI."}}},"RefreshStatus":{"enum":["in_progress","done"],"type":"string","description":"The current refresh status."},"CriteriaType.Code":{"enum":["code"],"type":"string","description":"Criteria Type."},"CodeCriteriaConfig":{"type":"object","additionalProperties":false,"required":["criteriaDefinitions","applicationMetaData"],"properties":{"unifyWithinProvider":{"type":"boolean","description":"Repositories with the same name at the selected group-by level (org, project, or repository) are consolidated into a single application within the selected provider."},"unifyAcrossProviders":{"type":"boolean","description":"If multiple applications share the same name at the chosen group-by level (org, project, or repository), they are merged across providers to form a single unified application."},"criteriaDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/CriteriaDefinition"}},"criteriaPrettyName":{"type":"string","description":"A human-readable name for the criteria."},"criteriaPrettyNameTags":{"type":"array","description":"Tags associated with the criteria name.","items":{"type":"string"}},"applicationMetaData":{"$ref":"#/components/schemas/ApplicationMetadataCode"}},"title":"Code Criteria"},"CriteriaDefinition":{"type":"array","items":{"type":"object","required":["type","provider"],"properties":{"type":{"$ref":"#/components/schemas/CriteriaDefinitionType"},"provider":{"$ref":"#/components/schemas/SectionProvider"},"filters":{"type":"array","description":"**Optional.** A list of filters to apply. If you choose to include the `filters` array, all fields within each filter object are required. Each filter object contains the following fields:\n","items":{"type":"object","required":["type","field","values"],"properties":{"type":{"enum":["equal","notEqual","contains","notContains"],"description":"The filter operation."},"field":{"enum":["repositoryName","organizationName","projectName"],"description":"The field to filter on."},"values":{"type":"array","description":"The values to match for the filter.","items":{"type":"string"}}}}},"tagKeys":{"type":"array","description":"The tag keys to include.","items":{"type":"string"}}}}},"CriteriaDefinitionType":{"enum":["tags","organization","project","repository"],"type":"string"},"SectionProvider":{"anyOf":[{"$ref":"#/components/schemas/CodeProvider"},{"$ref":"#/components/schemas/RunProvider"}]},"CodeProvider":{"enum":["GITLAB","GITHUB","BITBUCKET","AZURE_REPOS","AWS_CODE_COMMIT"],"type":"string","description":"Source code management (SCM) or code hosting provider.\n**Allowed values**: `GITLAB`, `GITHUB`, `BITBUCKET`, `AZURE_REPOS`, `AWS_CODE_COMMIT`","title":"Code Provider"},"RunProvider":{"enum":["GCP","AWS","AZURE"],"type":"string","description":"Runtime or execution environment provider for the application or asset. **Allowed Values**: `GCP`, `AWS`, `AZURE`","title":"Run Provider"},"ApplicationMetadataCode":{"type":"object","additionalProperties":false,"required":["businessOwner","businessCriticality","exposedToInternetOverride"],"properties":{"businessOwner":{"$ref":"#/components/schemas/BusinessOwnerMetaData"},"businessCriticality":{"$ref":"#/components/schemas/BusinessCriticality"},"exposedToInternetOverride":{"type":"boolean","description":"Whether the asset is exposed to the internet."}}},"BusinessOwnerMetaData":{"enum":["none","organizationOwner","projectOwner","repositoryOwner"],"type":"string","description":"The metadata of the business owner."},"BusinessCriticality":{"enum":["Critical","High","Medium","Low"],"type":"string","description":"The operational importance of the asset."},"CriteriaDTOCloud":{"type":"object","additionalProperties":false,"required":["id","name","creationMethod","createdBy","createdAt","type","config"],"properties":{"id":{"type":"string","description":"Unique Id of the criteria."},"name":{"type":"string","description":"Unique name of the criteria."},"description":{"type":"string","description":"Criteria description."},"creationMethod":{"$ref":"#/components/schemas/CriteriaCreationMethod"},"createdBy":{"type":"string","description":"Owner of the criteria."},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the criteria was created."},"lastUpdated":{"type":"string","format":"date-time","description":"Timestamp when the criteria was updated."},"deletedAt":{"type":"string","format":"date-time","description":"Timestamp when the criteria was deleted."},"metadata":{"$ref":"#/components/schemas/CriteriaMetadata"},"type":{"$ref":"#/components/schemas/CriteriaType.Cloud"},"config":{"$ref":"#/components/schemas/CloudCriteriaConfig"}},"description":"Cloud Criteria details.","title":"Cloud Criteria"},"CriteriaType.Cloud":{"enum":["cloud"],"type":"string","description":"Criteria Type. Allowed values - `cloud`."},"CloudCriteriaConfig":{"type":"object","additionalProperties":false,"required":["criteriaDefinitions","applicationMetaData"],"properties":{"unifyWithinProvider":{"type":"boolean","description":"Repositories with the same name at the selected group-by level (org, project, or repository) are consolidated into a single application within the selected provider."},"unifyAcrossProviders":{"type":"boolean","description":"If multiple applications share the same name at the chosen group-by level (org, project, or repository), they are merged across providers to form a single unified application."},"criteriaDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/CriteriaDefinition"}},"criteriaPrettyName":{"type":"string","description":"A human-readable name for the criteria."},"criteriaPrettyNameTags":{"type":"array","description":"Tags associated with the criteria name.","items":{}},"applicationMetaData":{"$ref":"#/components/schemas/ApplicationMetadataCloud"}},"title":"Cloud Criteria"},"ApplicationMetadataCloud":{"properties":{"applicationNameSourceTags":{"type":"string","description":"Identifies the application name. If multiple values are found, the three most frequent ones are concatenated (for example, infra_bank_pay).\n If matching tag is not found, the application name is automatically generated by the system."},"businessCriticalitySourceTags":{"type":"string","description":"Maps the business criticality level (Critical, High, Medium, or Low). If multiple values are present, the highest severity level is applied. The default value is Medium."},"businessOwnerSourceTags":{"items":{"type":"string","description":"Specifies the application owner. If multiple values are present, they are concatenated and separated by commas."},"type":"array"},"businessUnitSourceTags":{"type":"string","description":"Maps the tag key to the Business Unit. If multiple values are available, a comma-separated string containing the top five most frequent values is shown."}},"type":"object","additionalProperties":false}}}}
```

## Get a Criteria by ID

> Retrieves detailed information for a specific criteria using its unique Id.\
> \
> \> #### Required license:\
> \>\
> \> Cortex XDR with the Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security Add-on.\ <br>

```json
{"openapi":"3.0.0","info":{"title":"ASPM, CICD and Application Security APIs","version":"Cortex XDR 5.2"},"tags":[{"name":"Criteria","description":"APIs for managing Criteria"}],"servers":[{"url":"https://api-yourfqdn"}],"security":[],"paths":{"/public_api/appsec/v1/application/criteria/{criteriaId}":{"get":{"operationId":"GetCriteria","summary":"Get a Criteria by ID","description":"Retrieves detailed information for a specific criteria using its unique Id.\n\n> #### Required license:\n>\n> Cortex XDR with the Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security Add-on.\n\n","tags":["Criteria"],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriteriaDTO"}}}}},"parameters":[{"in":"path","name":"criteriaId","description":"Unique identifier for the criteria","required":true,"schema":{"type":"string"}},{"schema":{"type":"string"},"in":"header","name":"Authorization","required":true,"description":"{api_key}"},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","required":true,"description":"{api_key_id}"}]}}},"components":{"schemas":{"CriteriaDTO":{"anyOf":[{"$ref":"#/components/schemas/CriteriaDTOCode"},{"$ref":"#/components/schemas/CriteriaDTOCloud"}]},"CriteriaDTOCode":{"type":"object","additionalProperties":false,"description":"Code Criteria details.","title":"Code Criteria","required":["id","name","creationMethod","createdBy","createdAt","type","config"],"properties":{"id":{"type":"string","description":"Unique Id of the criteria."},"name":{"type":"string","description":"Unique name of the criteria."},"description":{"type":"string","description":"Criteria description."},"creationMethod":{"$ref":"#/components/schemas/CriteriaCreationMethod"},"createdBy":{"type":"string","description":"Owner of the criteria."},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the criteria was created."},"lastUpdated":{"type":"string","format":"date-time","description":"Timestamp when the criteria was updated."},"deletedAt":{"type":"string","format":"date-time","description":"Timestamp when the criteria was deleted."},"metadata":{"$ref":"#/components/schemas/CriteriaMetadata"},"type":{"$ref":"#/components/schemas/CriteriaType.Code"},"config":{"$ref":"#/components/schemas/CodeCriteriaConfig"}}},"CriteriaCreationMethod":{"enum":["manual","automatic"],"type":"string","description":"Creation method for the criteria. Possible values:\n -`manual`: For the criteria created manually.\n -`automatic`: Criteria that are automatically created."},"CriteriaMetadata":{"type":"object","additionalProperties":false,"description":"Additional metadata for the criteria.","properties":{"applicationCount":{"type":"number","format":"double","description":"The number of associated applications."},"assetCount":{"type":"number","format":"double","description":"The number of associated assets."},"refreshStatus":{"$ref":"#/components/schemas/RefreshStatus"},"deletedFromUai":{"type":"boolean","description":"Indicates whether the resource has been deleted from UAI."}}},"RefreshStatus":{"enum":["in_progress","done"],"type":"string","description":"The current refresh status."},"CriteriaType.Code":{"enum":["code"],"type":"string","description":"Criteria Type."},"CodeCriteriaConfig":{"type":"object","additionalProperties":false,"required":["criteriaDefinitions","applicationMetaData"],"properties":{"unifyWithinProvider":{"type":"boolean","description":"Repositories with the same name at the selected group-by level (org, project, or repository) are consolidated into a single application within the selected provider."},"unifyAcrossProviders":{"type":"boolean","description":"If multiple applications share the same name at the chosen group-by level (org, project, or repository), they are merged across providers to form a single unified application."},"criteriaDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/CriteriaDefinition"}},"criteriaPrettyName":{"type":"string","description":"A human-readable name for the criteria."},"criteriaPrettyNameTags":{"type":"array","description":"Tags associated with the criteria name.","items":{"type":"string"}},"applicationMetaData":{"$ref":"#/components/schemas/ApplicationMetadataCode"}},"title":"Code Criteria"},"CriteriaDefinition":{"type":"array","items":{"type":"object","required":["type","provider"],"properties":{"type":{"$ref":"#/components/schemas/CriteriaDefinitionType"},"provider":{"$ref":"#/components/schemas/SectionProvider"},"filters":{"type":"array","description":"**Optional.** A list of filters to apply. If you choose to include the `filters` array, all fields within each filter object are required. Each filter object contains the following fields:\n","items":{"type":"object","required":["type","field","values"],"properties":{"type":{"enum":["equal","notEqual","contains","notContains"],"description":"The filter operation."},"field":{"enum":["repositoryName","organizationName","projectName"],"description":"The field to filter on."},"values":{"type":"array","description":"The values to match for the filter.","items":{"type":"string"}}}}},"tagKeys":{"type":"array","description":"The tag keys to include.","items":{"type":"string"}}}}},"CriteriaDefinitionType":{"enum":["tags","organization","project","repository"],"type":"string"},"SectionProvider":{"anyOf":[{"$ref":"#/components/schemas/CodeProvider"},{"$ref":"#/components/schemas/RunProvider"}]},"CodeProvider":{"enum":["GITLAB","GITHUB","BITBUCKET","AZURE_REPOS","AWS_CODE_COMMIT"],"type":"string","description":"Source code management (SCM) or code hosting provider.\n**Allowed values**: `GITLAB`, `GITHUB`, `BITBUCKET`, `AZURE_REPOS`, `AWS_CODE_COMMIT`","title":"Code Provider"},"RunProvider":{"enum":["GCP","AWS","AZURE"],"type":"string","description":"Runtime or execution environment provider for the application or asset. **Allowed Values**: `GCP`, `AWS`, `AZURE`","title":"Run Provider"},"ApplicationMetadataCode":{"type":"object","additionalProperties":false,"required":["businessOwner","businessCriticality","exposedToInternetOverride"],"properties":{"businessOwner":{"$ref":"#/components/schemas/BusinessOwnerMetaData"},"businessCriticality":{"$ref":"#/components/schemas/BusinessCriticality"},"exposedToInternetOverride":{"type":"boolean","description":"Whether the asset is exposed to the internet."}}},"BusinessOwnerMetaData":{"enum":["none","organizationOwner","projectOwner","repositoryOwner"],"type":"string","description":"The metadata of the business owner."},"BusinessCriticality":{"enum":["Critical","High","Medium","Low"],"type":"string","description":"The operational importance of the asset."},"CriteriaDTOCloud":{"type":"object","additionalProperties":false,"required":["id","name","creationMethod","createdBy","createdAt","type","config"],"properties":{"id":{"type":"string","description":"Unique Id of the criteria."},"name":{"type":"string","description":"Unique name of the criteria."},"description":{"type":"string","description":"Criteria description."},"creationMethod":{"$ref":"#/components/schemas/CriteriaCreationMethod"},"createdBy":{"type":"string","description":"Owner of the criteria."},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the criteria was created."},"lastUpdated":{"type":"string","format":"date-time","description":"Timestamp when the criteria was updated."},"deletedAt":{"type":"string","format":"date-time","description":"Timestamp when the criteria was deleted."},"metadata":{"$ref":"#/components/schemas/CriteriaMetadata"},"type":{"$ref":"#/components/schemas/CriteriaType.Cloud"},"config":{"$ref":"#/components/schemas/CloudCriteriaConfig"}},"description":"Cloud Criteria details.","title":"Cloud Criteria"},"CriteriaType.Cloud":{"enum":["cloud"],"type":"string","description":"Criteria Type. Allowed values - `cloud`."},"CloudCriteriaConfig":{"type":"object","additionalProperties":false,"required":["criteriaDefinitions","applicationMetaData"],"properties":{"unifyWithinProvider":{"type":"boolean","description":"Repositories with the same name at the selected group-by level (org, project, or repository) are consolidated into a single application within the selected provider."},"unifyAcrossProviders":{"type":"boolean","description":"If multiple applications share the same name at the chosen group-by level (org, project, or repository), they are merged across providers to form a single unified application."},"criteriaDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/CriteriaDefinition"}},"criteriaPrettyName":{"type":"string","description":"A human-readable name for the criteria."},"criteriaPrettyNameTags":{"type":"array","description":"Tags associated with the criteria name.","items":{}},"applicationMetaData":{"$ref":"#/components/schemas/ApplicationMetadataCloud"}},"title":"Cloud Criteria"},"ApplicationMetadataCloud":{"properties":{"applicationNameSourceTags":{"type":"string","description":"Identifies the application name. If multiple values are found, the three most frequent ones are concatenated (for example, infra_bank_pay).\n If matching tag is not found, the application name is automatically generated by the system."},"businessCriticalitySourceTags":{"type":"string","description":"Maps the business criticality level (Critical, High, Medium, or Low). If multiple values are present, the highest severity level is applied. The default value is Medium."},"businessOwnerSourceTags":{"items":{"type":"string","description":"Specifies the application owner. If multiple values are present, they are concatenated and separated by commas."},"type":"array"},"businessUnitSourceTags":{"type":"string","description":"Maps the tag key to the Business Unit. If multiple values are available, a comma-separated string containing the top five most frequent values is shown."}},"type":"object","additionalProperties":false}}}}
```

## Delete a Criteria

> Deletes a specific criteria identified by its unique Id.\
> \
> \> #### Required license:\
> \>\
> \> Cortex XDR with the Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security Add-on.<br>

```json
{"openapi":"3.0.0","info":{"title":"ASPM, CICD and Application Security APIs","version":"Cortex XDR 5.2"},"tags":[{"name":"Criteria","description":"APIs for managing Criteria"}],"servers":[{"url":"https://api-yourfqdn"}],"security":[],"paths":{"/public_api/appsec/v1/application/criteria/{criteriaId}":{"delete":{"operationId":"DeleteCriteria","summary":"Delete a Criteria","description":"Deletes a specific criteria identified by its unique Id.\n\n> #### Required license:\n>\n> Cortex XDR with the Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security Add-on.\n","tags":["Criteria"],"responses":{"204":{"description":"No content"}},"parameters":[{"in":"path","name":"criteriaId","description":"Unique identifier for the criteria","required":true,"schema":{"type":"string"}},{"schema":{"type":"string"},"in":"header","name":"Authorization","description":"{api_key}","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"{api_key_id}","required":true}]}}}}
```

## Create a Criteria

> Creates a Criteria based on the provided details.\
> \
> \> #### Required license:\
> \>\
> \> Cortex XDR with the Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security Add-on.<br>

```json
{"openapi":"3.0.0","info":{"title":"ASPM, CICD and Application Security APIs","version":"Cortex XDR 5.2"},"tags":[{"name":"Criteria","description":"APIs for managing Criteria"}],"servers":[{"url":"https://api-yourfqdn"}],"security":[],"paths":{"/public_api/appsec/v1/application/criteria":{"post":{"operationId":"CreateCriteria","summary":"Create a Criteria","description":"Creates a Criteria based on the provided details.\n\n> #### Required license:\n>\n> Cortex XDR with the Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security Add-on.\n","tags":["Criteria"],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCriteriaResponse"}}}}},"parameters":[{"schema":{"type":"string"},"in":"header","name":"Authorization","required":true,"description":"{api_key}"},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"{api_key_id}","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCriteriaRequest"}}}}}}},"components":{"schemas":{"CreateCriteriaResponse":{"properties":{"id":{"type":"string","description":"Unique Id of the criteria."},"name":{"type":"string","description":"Unique name of the criteria."}},"required":["id","name"],"type":"object","additionalProperties":false},"CreateCriteriaRequest":{"type":"object","additionalProperties":false,"description":"Creates a new criteria object.","title":"CreateCriteriaRequest","required":["name","type","config"],"properties":{"name":{"type":"string","description":"Unique name for the criteria."},"description":{"type":"string","description":"Optional description for the criteria."},"type":{"$ref":"#/components/schemas/CriteriaType.Cloud"},"config":{"anyOf":[{"$ref":"#/components/schemas/CodeCriteriaConfig"},{"$ref":"#/components/schemas/CloudCriteriaConfig"}]}}},"CriteriaType.Cloud":{"enum":["cloud"],"type":"string","description":"Criteria Type. Allowed values - `cloud`."},"CodeCriteriaConfig":{"type":"object","additionalProperties":false,"required":["criteriaDefinitions","applicationMetaData"],"properties":{"unifyWithinProvider":{"type":"boolean","description":"Repositories with the same name at the selected group-by level (org, project, or repository) are consolidated into a single application within the selected provider."},"unifyAcrossProviders":{"type":"boolean","description":"If multiple applications share the same name at the chosen group-by level (org, project, or repository), they are merged across providers to form a single unified application."},"criteriaDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/CriteriaDefinition"}},"criteriaPrettyName":{"type":"string","description":"A human-readable name for the criteria."},"criteriaPrettyNameTags":{"type":"array","description":"Tags associated with the criteria name.","items":{"type":"string"}},"applicationMetaData":{"$ref":"#/components/schemas/ApplicationMetadataCode"}},"title":"Code Criteria"},"CriteriaDefinition":{"type":"array","items":{"type":"object","required":["type","provider"],"properties":{"type":{"$ref":"#/components/schemas/CriteriaDefinitionType"},"provider":{"$ref":"#/components/schemas/SectionProvider"},"filters":{"type":"array","description":"**Optional.** A list of filters to apply. If you choose to include the `filters` array, all fields within each filter object are required. Each filter object contains the following fields:\n","items":{"type":"object","required":["type","field","values"],"properties":{"type":{"enum":["equal","notEqual","contains","notContains"],"description":"The filter operation."},"field":{"enum":["repositoryName","organizationName","projectName"],"description":"The field to filter on."},"values":{"type":"array","description":"The values to match for the filter.","items":{"type":"string"}}}}},"tagKeys":{"type":"array","description":"The tag keys to include.","items":{"type":"string"}}}}},"CriteriaDefinitionType":{"enum":["tags","organization","project","repository"],"type":"string"},"SectionProvider":{"anyOf":[{"$ref":"#/components/schemas/CodeProvider"},{"$ref":"#/components/schemas/RunProvider"}]},"CodeProvider":{"enum":["GITLAB","GITHUB","BITBUCKET","AZURE_REPOS","AWS_CODE_COMMIT"],"type":"string","description":"Source code management (SCM) or code hosting provider.\n**Allowed values**: `GITLAB`, `GITHUB`, `BITBUCKET`, `AZURE_REPOS`, `AWS_CODE_COMMIT`","title":"Code Provider"},"RunProvider":{"enum":["GCP","AWS","AZURE"],"type":"string","description":"Runtime or execution environment provider for the application or asset. **Allowed Values**: `GCP`, `AWS`, `AZURE`","title":"Run Provider"},"ApplicationMetadataCode":{"type":"object","additionalProperties":false,"required":["businessOwner","businessCriticality","exposedToInternetOverride"],"properties":{"businessOwner":{"$ref":"#/components/schemas/BusinessOwnerMetaData"},"businessCriticality":{"$ref":"#/components/schemas/BusinessCriticality"},"exposedToInternetOverride":{"type":"boolean","description":"Whether the asset is exposed to the internet."}}},"BusinessOwnerMetaData":{"enum":["none","organizationOwner","projectOwner","repositoryOwner"],"type":"string","description":"The metadata of the business owner."},"BusinessCriticality":{"enum":["Critical","High","Medium","Low"],"type":"string","description":"The operational importance of the asset."},"CloudCriteriaConfig":{"type":"object","additionalProperties":false,"required":["criteriaDefinitions","applicationMetaData"],"properties":{"unifyWithinProvider":{"type":"boolean","description":"Repositories with the same name at the selected group-by level (org, project, or repository) are consolidated into a single application within the selected provider."},"unifyAcrossProviders":{"type":"boolean","description":"If multiple applications share the same name at the chosen group-by level (org, project, or repository), they are merged across providers to form a single unified application."},"criteriaDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/CriteriaDefinition"}},"criteriaPrettyName":{"type":"string","description":"A human-readable name for the criteria."},"criteriaPrettyNameTags":{"type":"array","description":"Tags associated with the criteria name.","items":{}},"applicationMetaData":{"$ref":"#/components/schemas/ApplicationMetadataCloud"}},"title":"Cloud Criteria"},"ApplicationMetadataCloud":{"properties":{"applicationNameSourceTags":{"type":"string","description":"Identifies the application name. If multiple values are found, the three most frequent ones are concatenated (for example, infra_bank_pay).\n If matching tag is not found, the application name is automatically generated by the system."},"businessCriticalitySourceTags":{"type":"string","description":"Maps the business criticality level (Critical, High, Medium, or Low). If multiple values are present, the highest severity level is applied. The default value is Medium."},"businessOwnerSourceTags":{"items":{"type":"string","description":"Specifies the application owner. If multiple values are present, they are concatenated and separated by commas."},"type":"array"},"businessUnitSourceTags":{"type":"string","description":"Maps the tag key to the Business Unit. If multiple values are available, a comma-separated string containing the top five most frequent values is shown."}},"type":"object","additionalProperties":false}}}}
```


---

# 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/aspm-cicd-and-application-security/criteria.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.
