Files
developer.sailpoint.com/docs/tools/sdk/powershell/Reference/V2024/Models/SearchCriteria.md
2025-05-20 15:12:17 +00:00

1.8 KiB

id, title, pagination_label, sidebar_label, sidebar_class_name, keywords, slug, tags
id title pagination_label sidebar_label sidebar_class_name keywords slug tags
v2024-search-criteria SearchCriteria SearchCriteria SearchCriteria powershellsdk
powershell
PowerShell
sdk
SearchCriteria
V2024SearchCriteria
/tools/sdk/powershell/v2024/models/search-criteria
SDK
Software Development Kit
SearchCriteria
V2024SearchCriteria

SearchCriteria

Properties

Name Type Description Notes
Indices []String A list of indices to search within. Must contain exactly one item, typically ""entitlements"". [required]
Filters map[string]SearchCriteriaFiltersValue A map of filters applied to the search. Keys are filter names, and values are filter definitions. [optional]
Query SearchCriteriaQuery [optional]
QueryType String Specifies the type of query. Must be ""TEXT"" if textQuery is used. [optional]
TextQuery SearchCriteriaTextQuery [optional]
IncludeNested Boolean Whether to include nested objects in the search results. [optional] [default to $false]
Sort []String Specifies the sorting order for the results. [optional]
SearchAfter []String Used for pagination to fetch results after a specific point. [optional]

Examples

  • Prepare the resource
$SearchCriteria = Initialize-V2024SearchCriteria  -Indices [entitlements] `
 -Filters {status={type=TERMS, terms=[active, inactive]}} `
 -Query null `
 -QueryType TEXT `
 -TextQuery null `
 -IncludeNested true `
 -Sort [name:asc, createdAt:desc] `
 -SearchAfter [12345, 67890]
  • Convert the resource to JSON
$SearchCriteria | ConvertTo-JSON

[Back to top]