API Stability Preview

The searchDomainAssets() GraphQL query fetches the list of assets in the given search domains.

Syntax

Below is the syntax for the searchDomainAssets() query field:

graphql
searchDomainAssets(
      searchDomainNames: [string!]!, 
      assetTypes: [AssetPermissionsAssetType!], 
      searchFilter: string, 
      limit: integer, 
      skip: integer, 
      orderBy: OrderBy
   ): SearchDomainAssetsResultSet!

searchDomainNames is a list of names of the search domains to search. If empty, assets from all search domains for which the requester has access will be searched. For assetTypes (see Given Datatypes below), if empty, all asset types are included in search. The searchFilter is used to filter.

Below is an example of this query field with a few values requested:

Show:
graphql
query {
	searchDomainAssets(
    searchDomainNames: [ "humio" ]
    assetTypes: [],
    skip: 2,
    limit: 2
    orderBy: DESC  
  )
  { totalResults, results { name, assetType, id }  }
}
Example Responses
Show:
json
{
  "data": {
    "searchDomainAssets": {
      "totalResults": 37,
      "results": [
        {
          "name": "parseHumioText",
          "assetType": "SavedQuery",
          "id": "1S2bN2y5JwrzP6wEHHAQtL7bicF8mS0Y"
        },
        {
          "name": "my-webhook-action",
          "assetType": "Action",
          "id": "ZUFq14KhgRAZiakZgzBTFFaLqbnixCJz"
        }
      ]
    }
  }
}

Given Datatypes

AssetPermissionsAssetType is an enumerated list of choices.

Table: AssetPermissionsAssetType

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 13, 2024
Actionboolean  PreviewThe asset permission is related to an action.
AggregateAlertboolean  PreviewThe asset permission is related to an aggregate alert.
Dashboardboolean  PreviewThe asset permission is related to a dashboard.
Fileboolean  PreviewThe asset permission is related to a file.
FilterAlertboolean  PreviewThe asset permission is related to a filter alert.
LegacyAlertboolean  PreviewThe asset permission is related to a legacy alert.
SavedQueryboolean  PreviewThe asset permission is related to a saved query.
ScheduledReportboolean  PreviewThe asset permission is related to a scheduled report.
ScheduledSearchboolean  PreviewThe asset permission is related to a scheduled search.

Returned Datatypes

The returned datatype SearchDomainAssetsResultSet has a couple of parameters, and some sub-parameters. Below is a list of them:

Table: SearchDomainAssetsResultSet

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 3, 2025
results[SearchDomainAsset]yes PreviewThe paginated result set. See SearchDomainAsset.
totalResultsintegeryes PreviewThe total number of matching results.