Search Components for Configuration Item
Perform a paginated search across configuration item components with filtering and sorting options. Returns a list of configuration items that match the search criteria.
Special Access Rules
To query components for a configuration item, you must have the following user permissions:
IT Service Configuration Item Type Manager
IT Service Configuration Item Owner
IT Service Configuration Item Type Reader
Request
JSON example
Component
1 query SearchComponentCI {
2 searchComponentCI(
3 searchObject: {
4 pageSize: 10
5 sort: [
6 {
7 sortKey: SD_ApNa
8 sortOrder: ASC
9 }
10 ]
11 cursor_position: "W251bGwsIjE3NjE4MDQ1OTExMzYiLCIzMjc2ODAxIl0="
12 }
13 ) {
14 totalCount
15 pageSize
16 next_cursor
17 hasMoreRecords
18 data {
19 id
20 SD_Co
21 SD_LoBaPo
22 SD_LoBaSt
23 SD_SeSt
24 SD_LaTeAr
25 SD_AuScGrN
26 SD_DeCa
27 }
28 }
29 }
Properties
Name Type Description Required or Optional Available Version searchObjectSearchObject An object containing filter criteria, pagination parameters, and sort options for the search query. Required 67.0
SearchObject Properties
Properties
Name Type Description Required or Optional Available Version cursor_positionString A Base64-encoded cursor string used for pagination. Use the next_cursor value from the previous response to fetch the next page of results. Optional 67.0 filtersFilterCriteria An array of filter criteria objects that define the conditions to apply when searching configuration item components. Optional 67.0 pageSizeInteger The maximum number of configuration item component records to return in each page of results. If not specified, the value defaults to 10 records per page. The maximum value is 20. Optional 67.0 sortSortCriteria An array of sort criteria objects that specify how to order the search results. Optional 67.0
FilterCriteria Properties
Use FilterCriteria to filter search results based on field values.
1 {
2 "field": "id",
3 "operator": "EQUALS",
4 "values": ["101020"]
5 }
Name Type Description Required or Optional Available Version fieldSearchableField (enumeration of type string)The field name to use for filtering the search results. For valid values, see Valid field Values . Required 67.0 operatorFilterOperator (enumeration of type string)The comparison operator to use for filtering. For valid values, see Valid operator Values . Required 67.0 valuesArray of String An array of values to match against the specified field. For EQUALS provide exactly one value. For IN provide one or more values. Required 67.0
Valid field Values
Value Label idUnique ID ci_typeConfiguration Item Type ci_type_developer_nameConfiguration Item Type Developer Name created_atCreated time updated_atLast modified time SD_ApNaApplication Name SD_AsIdAsset ID SD_AsNaAsset Name SD_AwLoBaNAWS Load Balancer Name SD_CiLoConfiguration Item Location SD_CiOwConfiguration Item Owner SD_CiOwGrConfiguration Item Owner Group SD_CoCompany SD_DeIdDevice ID/Deployment ID SD_DeLoDevice Location SD_DeMaNaDevice Manufacturer Name SD_DeMoNaDevice Model Name SD_DeNaDevice Name SD_DeSeNuDevice Serial Number SD_DeDescription SD_DnHoNaDNS Host Name SD_EsNaESXi Name SD_GrNaGroup Name SD_HaVeHardware Vendor SD_HoNaHost Name SD_ImNuIMEI Number SD_InNaInstance Name SD_InOwInstance Owner SD_IpAdIP Address SD_LiPrNaLicense Product Name SD_MaManufacturer SD_MeMaMemory Manufacturer SD_MoNuModel Number SD_NeHoNetwork Host SD_NeInNaNetwork Interface Name SD_NoNaNode Name SD_OpSyOperating System SD_OsTyOS Type SD_OsVeOS Vendor SD_PrDnNaPrivate DNS Name SD_PrIpAdPrivate IP Address SD_PrNaProcess Name/Processor Name SD_PuDnNaPublic DNS Name SD_PuIpAdPublic IP Address SD_ReRegion SD_SeNuSerial Number SD_SeIpAdServer IP Address SD_SeNaServer Name SD_SoNaSoftware Name SD_WeNaWebsite Name SD_WeTiWebsite Title SD_StStatus SD_OsClOS Class SD_UsuUsedBy (User) SD_UsuGrUsedBy (User Group) SD_MaAdMAC Address
Valid operator Values
Value Description CONTAINSMatches if the field contains the specified value. Use with exactly one value in the values array. ENDS_WITHMatches if the field value ends with the specified value. Use with exactly one value in the values array. EQUALSMatches a single exact value. Use with exactly one value in the values array. GREATER_THANMatches if the field value is greater than the specified value. Use with exactly one value in the values array. GREATER_THAN_OR_EQUALMatches if the field value is greater than or equal to the specified value. Use with exactly one value in the values array. INMatches any value in a list. Use with multiple values in the values array. IS_BETWEENMatches if the field value is between two specified values (inclusive). Use with exactly two values in the values array. IS_EMPTYMatches if the field is empty or null. The values array should be empty or omitted. LESS_THANMatches if the field value is less than the specified value. Use with exactly one value in the values array. LESS_THAN_OR_EQUALMatches if the field value is less than or equal to the specified value. Use with exactly one value in the values array. NOT_BETWEENMatches if the field value is not between two specified values (inclusive). Use with exactly two values in the values array. NOT_CONTAINSMatches if the field does not contain the specified value. Use with exactly one value in the values array. NOT_EMPTYMatches if the field is not empty or null. The values array should be empty or omitted. NOT_EQUALSDoes not match a single exact value. Use with exactly one value in the values array. NOT_INDoes not match any value in a list. Use with multiple values in the values array. STARTS_WITHMatches if the field value starts with the specified value. Use with exactly one value in the values array.
SortCriteria
Use SortCriteria to specify how search results should be ordered.
1 {
2 "sortKey": "SD_ApNa",
3 "sortOrder": "ASC"
4 }
Name Type Description Required or Optional Available Version sortKeysortFields (enumeration of type string)The field name to use for sorting the search results. Valid values are the same as for the field parameter. See Valid field Values . Required 67.0 sortOrderSortOrder (enumeration of type string)The sort direction for the results. Values are ASC (Ascending) or DESC (Descending). Required 67.0
Response
JSON example
This example is a sample response from the searchComponentCI query.
1 {
2 "data": {
3 "searchComponentCI": {
4 "totalCount": 50,
5 "hasMoreRecords": true,
6 "lastModifiedOn": "1764831587989",
7 "data": [
8 {
9 "id": 1001,
10 "name": "Server-01",
11 "SD_OpSy": "Windows Server 2019",
12 "SD_CiLo": "Data Center 1"
13 }
14 ]
15 }
16 }
17 }
Properties
Name Type Description Available Version totalCountInteger The total number of configuration item records that match the search criteria across all pages, regardless of pagination. 67.0 hasMoreRecordsBoolean Indicates whether additional pages of results are available (true) or not (false). Returns true if there are more records beyond the current page, false if this is the last page. 67.0 data[CI] An array of configuration item component objects returned for the current page of results. Each object contains the fields requested in the query for matching configuration items. 67.0 lastModifiedOnString The date and time the record was last updated. 68.0
When using the searchComponentCI operation, you can request any available attribute to be included in the response. The attributes you can include:
Standard Attributes: Many attributes are available out-of-the-box.
Custom Attributes: You can create and include custom attributes using the sObject API.
Add any attribute using its Developer Name (for example, SD_AsNa—Asset Name) to specify exactly which information you want to receive for your Configuration Items (CIs).