Summary

The searchDomainsPage() GraphQL query returns a paged list of search domains and information on each.

API Stability Long-Term

Syntax

graphql
searchDomainsPage(
      search: String,
      includeHidden: Boolean,
      pageNumber: Int!,
      pageSize: Int!
   ): SearchDomainPage!

Provide text to search repository and view names, indicate whether to include hidden search domains, specify the number of results per page, and which page to return.

Returns a non-nullable SearchDomainPage object. See the Returned Values section for more.

Example

Raw
graphql
query {
  searchDomainsPage(includeHidden: true, pageSize: 10, pageNumber: 1)
  { pageInfo{totalNumberOfRows, total}, 
    page { id, name } }
}
Mac OS or Linux (curl)
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d @- << EOF
{"query" : "query {
  searchDomainsPage(includeHidden: true, pageSize: 10, pageNumber: 1)
  { pageInfo{totalNumberOfRows, total}, 
    page { id, name } }
}"
}
EOF
Mac OS or Linux (curl) One-line
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d @- << EOF
{"query" : "query {
  searchDomainsPage(includeHidden: true, pageSize: 10, pageNumber: 1)
  { pageInfo{totalNumberOfRows, total}, 
    page { id, name } }
}"
}
EOF
Windows Cmd and curl
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql ^
    -H "Authorization: Bearer $TOKEN" ^
    -H "Content-Type: application/json" ^
    -d @'{"query" : "query { ^
  searchDomainsPage(includeHidden: true, pageSize: 10, pageNumber: 1) ^
  { pageInfo{totalNumberOfRows, total},  ^
    page { id, name } } ^
}" ^
} '
Windows Powershell and curl
powershell
curl.exe -X POST 
    -H "Authorization: Bearer $TOKEN"
    -H "Content-Type: application/json"
    -d '{"query" : "query {
  searchDomainsPage(includeHidden: true, pageSize: 10, pageNumber: 1)
  { pageInfo{totalNumberOfRows, total}, 
    page { id, name } }
}"
}'
    "$YOUR_LOGSCALE_URL/graphql"
Perl
perl
#!/usr/bin/perl

use HTTP::Request;
use LWP;

my $TOKEN = "TOKEN";

my $uri = '$YOUR_LOGSCALE_URL/graphql';

my $query = "query {
  searchDomainsPage(includeHidden: true, pageSize: 10, pageNumber: 1)
  { pageInfo{totalNumberOfRows, total}, 
    page { id, name } }
}";
$query =~ s/\n/ /g;
my $json = sprintf('{"query" : "%s"}',$query);
my $req = HTTP::Request->new("POST", $uri );

$req->header("Authorization" => "Bearer $TOKEN");
$req->header("Content-Type" => "application/json");

$req->content( $json );

my $lwp = LWP::UserAgent->new;

my $result = $lwp->request( $req );

print $result->{"_content"},"\n";
Python
python
#! /usr/local/bin/python3

import requests

url = '$YOUR_LOGSCALE_URL/graphql'
mydata = r'''{"query" : "query {
  searchDomainsPage(includeHidden: true, pageSize: 10, pageNumber: 1)
  { pageInfo{totalNumberOfRows, total}, 
    page { id, name } }
}"
}'''

resp = requests.post(url,
                     data = mydata,
                     headers = {
   "Authorization" : "Bearer $TOKEN",
   "Content-Type" : "application/json"
}
)

print(resp.text)
Node.js
javascript
const https = require('https');

const data = JSON.stringify(
    {"query" : "query {
  searchDomainsPage(includeHidden: true, pageSize: 10, pageNumber: 1)
  { pageInfo{totalNumberOfRows, total}, 
    page { id, name } }
}"
}
);


const options = {
  hostname: '$YOUR_LOGSCALE_URL',
  path: 'graphql',
  port: 443,
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Content-Length': data.length,
    Authorization: 'BEARER ' + process.env.TOKEN,
    'User-Agent': 'Node',
  },
};

const req = https.request(options, (res) => {
  let data = '';
  console.log(`statusCode: ${res.statusCode}`);

  res.on('data', (d) => {
    data += d;
  });
  res.on('end', () => {
    console.log(JSON.parse(data).data);
  });
});

req.on('error', (error) => {
  console.error(error);
});

req.write(data);
req.end();
Example Responses
Success (HTTP Response Code 200 OK)
json
{
  "data": {
    "searchDomainsPage": {
      "pageInfo": {
        "totalNumberOfRows": 9,
        "total": 1
      },
      "page": [
        {
          "id": "abc123",
          "name": "humio"
        },
        {
          "id": "def456",
          "name": "humio-audit"
        },
        {
          "id": "ghi789",
          "name": "humio-metrics"
        }
       ...  
      ]
    }
  }
}

Input Parameters

You may provide text on which to search repository and view names, indicate whether to include hidden search domains, as well as the number of results per page, and, based on that, which page to return.

Table: Input Parameters & Datatypes

Parameter Type Required Default Description
This table contains all input parameters for this query.
includeHidden Boolean     Whether to include hidden search domains in results.
pageNumber Int yes   Which page to return.
pageSize Int yes   The number of results returned per page.
search String     Any text on which to search for repositories and views.

Returned Values

Returns a non-nullable SearchDomainPage object. The table below lists all fields:

Table: SearchDomainPage Datatype

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results. 
Table last updated: Oct 14, 2026 
pageSearchDomainyes Long-Term The dashboards to be used for the dashboard page. See SearchDomain.
pageInfoPageTypeyes Long-Term Information about the search domain page (see PageType Table).

The SearchDomainPage type contains SearchDomain objects. For reference, the SearchDomain datatype table is included here:

Table: SearchDomain Interface Datatype

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
Some input parameters may be required, as indicated in the Required column. For return values, this indicates that you are assured a value if the field is requested for the results. 
Table last updated: Oct 14, 2026 
actionViewAction):Booleanyes Long-Term 

A saved action. See Action.

actionIdsString]):[Actionyes Long-Term The result will only include actions with the specified ids. Omit to find all actions.
aggregateAlertsAggregateAlertyes Long-Term A list of saved aggregate alerts. See AggregateAlert.
alert(id: String!)Alertyes Long-Term 

A saved alert. See Alert.

alertsAlertyes Long-Term Saved alerts. See Alert.
allowedViewActionsViewActionyes Long-Term Returns all actions the user is allowed to perform on the view. See ViewAction.
automaticSearchBooleanyes Long-Term Whether to execute automatically the default search query.
awsExternalIdStringyes Long-Term The AWS External ID used when assuming roles in AWS on behalf of this repository. Stability: Long-term
categoriesString]):[PackageRegistrySearchResultItemyes Long-Term Packages with any of these categories will be included.
dashboard(id: String!)Dashboardyes Long-Term 

The default or initial Dashboard to use. See Dashboard.

dashboardsDashboardyes Long-Term All dashboards available on the view. See Dashboard.
defaultQuerySavedQuery  Long-Term Stability: Long-term
deletedDateLong  Long-Term The point in time the search domain was marked for deletion.
descriptionString  Long-Term A description of the search domain.
fieldNameString,yes   Name of the field in the file to return entries from.
fieldsToIncludeString],yes   Names of the fields to include in the result.
fileNameString,yes   Name of the csv or json file to retrieve the field entries from.
filesFileyes Long-Term Files belonging to the search domain. See File.
filterString,    Filter input to limit the returned packages
filterAlertsFilterAlertyes Long-Term Saved filter alerts. See FilterAlert.
gcpExternalIdString  Long-Termadded in 1.259The value to set as the 'logscale-external-id' label on the GCS bucket. Stability: Long-term
gcsActionServiceAccountEmailString  Long-Termadded in 1.259The email of the GCP service account that LogScale uses to impersonate target service accounts for GCS actions. Stability: Long-term
groupsGroupyes Long-Term Groups with assigned roles. See Group.
hasPackageInstalled(packageId: VersionedPackageSpecifier!)Booleanyes Long-Term 

Whether there is an installed package. VersionedPackageSpecifier is a scalar.

idString):ScheduledReportyes Long-Term The unique identifier for the search domain.
installedPackagesPackageInstallationyes Long-Term List packages installed on a specific view or repository. See PackageInstallation.
interactionsViewInteractionyes Long-Term All interactions defined on the view. See ViewInteraction.
isStarredBooleanyes Long-Term Whether the search domain is highlighted with a star.
limitInt):PersistedAggregationResultSetyes Preview The amount of results to return.
maxEntriesInt):[[DictionaryEntryType]yes Long-Term Maximum number of values to retrieve from the file.
nameString):ScheduledSearchyes Long-Term The name of the search domain. RepoOrViewName is a scalar.
orderByOrderBy,    Choose the order in which the results are returned.
packageIdVersionedPackageSpecifier):Package2yes Long-Term The package id of the package to get.
packageVersions(packageId: UnversionedPackageSpecifier!)RegistryPackageVersionInfoyes Long-Term 

The available versions of a package.

UnversionedPackageSpecifier is a scalar. See RegistryPackageVersionInfo.

permanentlyDeletedAtLong  Long-Term The point in time the search domain will not be restorable anymore.
permissionFilterPermission,    Permission that the users must have on the search domain. Leave out to get users with any permission on the view
prefixFilterString,    Text to filter values by prefix on.
recentQueriesV2RecentQueryyes Long-Term All recent queries for the search domain. See RecentQuery.
redirectQueryAssetLookupToSearchDomain  Preview The redirected query asset lookup view used for asset resolution when set. Assets like saved queries and lookup files will be resolved from this view instead of the current view.
reposExcludedInSearchLimitStringyes Long-Term Repositories not part of the search limitation.
resourceStringyes Short-Term The resource identifier for the search domain.
s3ActionArnString  Long-Term The ARN of the AWS IAM identity that will write to S3 for S3 actions. Stability: Long-term
savedQueriesSavedQueryyes Long-Term The saved queries. See SavedQuery.
savedQuery(id: String!)SavedQueryyes Long-Term 

A saved query. See SavedQuery.

scheduledReportsScheduledReportyes Long-Term Saved scheduled reports. See ScheduledReport.
scheduledSearchesScheduledSearchyes Long-Term The scheduled searches to use with the search domain. See ScheduledSearch.
searchString,    Search for a user whose email or name matches this search string
searchLimitedMsLong  Long-Term Limit in milliseconds to which searches should are limited.
skipInt,    The number of results to skip or the offset to use. For instance if implementing pagination, set skip = limit * (page - 1)
sortByPersistedAggregationSortBy,    The field by which to sort persisted aggregations. Defaults to Name.
starredFieldsStringyes Long-Term All fields in the search domain to mark with a star.
tagsStringyes Long-Term All tags from all datasources.
usersUseryes Long-Term Users who have access to the search domain. See User.
valueFiltersFileFieldFilterType],yes   The exact values that given fields should have for an entry to be part of the result.
viewerQueryPrefixStringyes Long-Term The query prefix prepended to each search in this domain.