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:
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:
query {
searchDomainAssets(
searchDomainNames: [ "humio" ]
assetTypes: [],
skip: 2,
limit: 2
orderBy: DESC
)
{ totalResults, results { name, assetType, id } }
}
{
"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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
Action | boolean | Preview | The asset permission is related to an action. | ||
AggregateAlert | boolean | Preview | The asset permission is related to an aggregate alert. | ||
Dashboard | boolean | Preview | The asset permission is related to a dashboard. | ||
File | boolean | Preview | The asset permission is related to a file. | ||
FilterAlert | boolean | Preview | The asset permission is related to a filter alert. | ||
LegacyAlert | boolean | Preview | The asset permission is related to a legacy alert. | ||
SavedQuery | boolean | Preview | The asset permission is related to a saved query. | ||
ScheduledReport | boolean | Preview | The asset permission is related to a scheduled report. | ||
ScheduledSearch | boolean | Preview | The 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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | Preview | The paginated result set. See SearchDomainAsset . | |
totalResults | integer | yes | Preview | The total number of matching results. |