API Stability Preview

The SetSearchLimitForSearchDomain() GraphQL mutation may be used to update a search limit, which will restrict future searches to the specified limit. A list of repository names can be given that won't be restricted by this limit.

Syntax

Below is the syntax for the SetSearchLimitForSearchDomain() mutation field:

graphql
SetSearchLimitForSearchDomain(
      input: SetSearchLimitForSearchDomain!
   ): View!

You'll need the unique identification of the view and of the related repositories. To get a list of existing views, along with repositories, use searchDomains() .

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  SetSearchLimitForSearchDomain( input:
        { id: "Qv6NiGQveP1OC2BhDa1fsYY4",
          searchLimitMs: 120000,
          excludedRepoIds: [ "X4aZ7KP4AeTvKkigOV3G1ZWy" ]
        } )
  { name }
}
Example Responses
Show:
json
{
  "data": {
    "SetSearchLimitForSearchDomain": {
      "name": "Vista"
    }
  }
}

Given Datatypes

SetSearchLimitForSearchDomain has a few parameters that may be given. Below is a list of them along with descriptions of each:

Table: SetSearchLimitForSearchDomain

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 19, 2024
excludedRepoIds[string]yes PreviewThe repositories that aren't part of the search limitation.
idstringyes PreviewThe unique identifier of the view.
searchLimitMslongyes PreviewThe search limit, in milliseconds, to which searches should be limited.

Returned Datatypes

View has a several parameters. Below is a list of them:

Table: View

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: Apr 2, 2025
actionmultipleyes Long-TermA saved action. The multiple datatype consists of (id: string): Action. The id is the unique identifier of the action. See Action.
actionsmultipleyes Long-TermA list of saved actions. The multiple datatype consists of (actionIds: [string]): [Action]. See Action.
aggregateAlertmultipleyes Long-TermA saved aggregate alert. The multiple datatype consists of (id: string): AggregateAlert. See AggregateAlert.
aggregateAlerts[AggregateAlert]yes Long-TermSaved aggregate alerts. See AggregateAlert.
alertmultipleyes Long-TermA saved alert. The multiple datatype consists of (id: string): Alert. See alert.
alerts[alert]yes Long-TermSaved alerts. See alert.
allowedViewActions[ViewAction]yes Long-TermReturns the all actions the user is allowed to perform on the view. See ViewAction.
automaticSearchbooleanyes Long-TermWhether the search is executed automatically.
availablePackagesmultiple  Long-TermReturns a list of available packages that can be installed. The multiple datatype consists of (filter: string, tags: [PackageTag!], categories: [string]): [PackageRegistrySearchResultItem]. PackageTag is a scalar. See PackageRegistrySearchResultItem.
checkClusterConnections[ClusterConnectionStatus]yes Short-TermCheck all of this search domain's cluster connections. This is a preview and subject to change. See ClusterConnectionStatus.
clusterConnectionmultipleyes Short-TermA specific cluster connection. The multiple datatype consists of (id: string): ClusterConnection. See ClusterConnection.
clusterConnections[ClusterConnection]yes Short-TermThe search domain's cluster connections. See ClusterConnection.
connections[ViewConnection]yes Long-TermThe connections for the view. This is a preview and subject to change. See ViewConnection.
crossOrgConnections[CrossOrgViewConnection]yes Short-TermThe connections for the cross organization connections (see CrossOrgViewConnection Table).
dashboardmultipleyes Long-TermA saved dashboard. The multiple datatype consists of (id: string): Dashboard. See Dashboard.
dashboards[Dashboard]yes Long-TermSaved dashboards. See Dashboard.
defaultQuerysavedQuery  Long-TermThe default saved query. See savedQuery.
deletedDatelong  Long-TermThe point in time the search domain was marked for deletion.
descriptionstring  Long-TermA description of the view.
fileFieldSearchmultipleyes Long-TermThe fields to search in a given file. The multiple datatype consists of (fileName: string, fieldName: string, prefixFilter: string, valueFilters: [FileFieldFilterType], fieldsToInclude: [string], maxEntries: integer): [DictionaryEntryType]. See FileFieldFilterType and DictionaryEntryType.
files[File]yes Long-TermA list of files used. See File.
filterAlertmultipleyes Long-TermA saved filter alert. The multiple datatype consists of (id: string): FilterAlert. See FilterAlert.
filterAlerts[FilterAlert]yes Long-TermSaved filter alerts. See FilterAlert.
groups[group]yes Long-TermGroups with assigned roles. See group.
hasPackageInstalledmultipleyes Long-TermDetermines whether package has been installed. The multiple datatype consists of (packageId: VersionedPackageSpecifier): boolean. VersionedPackageSpecifier is a scalar.
idstringyes Long-TermThe unique identifier of the view.
installedPackages[PackageInstallation]yes Long-TermList packages installed on a specific view or repository See PackageInstallation.
interactions[ViewInteraction]yes Long-TermAll interactions defined for the view. See ViewInteraction.
isActionAllowedmultipleyes Long-TermDetermines whether current user is allowed to perform the given action on the view. The multiple datatype consists of (action: ViewAction): boolean. See ViewAction.
isFederatedbooleanyes PreviewWhether the view is Federated. This is a preview and subject to change.
isStarredbooleanyes Long-TermWhether the view should be marked with a star.
nameRepoOrViewNameyes Long-TermThe name of the repository or view. RepoOrViewName is a scalar.
packageV2multipleyes Long-TermReturns a specific version of a package given a package version. The multiple datatype consists of (packageId: VersionedPackageSpecifier): Package2. VersionedPackageSpecifier is a scalar. See Package2.
packageVersionsmultipleyes Long-TermThe available versions of a package. This is a preview and may be moved to Package2. The multiple datatype consists of (packageId: UnversionedPackageSpecifier): [RegistryPackageVersionInfo]. UnversionedPackageSpecifier is a scalar. See RegistryPackageVersionInfo.
permanentlyDeletedAtlong  Long-TermThe point in time the search domain will not be restorable anymore.
recentQueriesV2[RecentQuery]yes Long-TermList of recent queries. See RecentQuery.
reposExcludedInSearchLimit[string]yes Long-TermRepositories not part of the search limitation.
resourcestringyes Short-TermThe resource identifier for the search domain.
savedQueries[savedQuery]yes Long-TermA list of saved queries. See savedQuery.
savedQuerymultipleyes Long-TermA saved query. The multiple datatype consists of (id: string): SavedQuery. See savedQuery.
scheduledReportmultipleyes Long-TermSaved scheduled report. The multiple datatype consists of (id: string): ScheduledReport. See scheduledReport.
scheduledReports[scheduledReport]yes Long-TermSaved scheduled reports See scheduledReport.
scheduledSearchmultipleyes Long-TermA saved scheduled search. The multiple datatype consists of (id: string): ScheduledSearch. See scheduledSearch.
scheduledSearches[scheduledSearch]yes Long-TermSaved scheduled searches. See scheduledSearch.
searchLimitedMslong  Long-TermSearch limit in milliseconds, by which searches are limited.
starredFields[string]yes Long-TermFields marked with a star.
tags[string]yes Long-TermAll tags from all datasources.
users[User]yes Long-TermUsers who have access. See User.
usersAndGroupsmultiple  Long-TermUsers or groups who have access. The multiple datatype consists of (search: string, skip: integer, limit: integer): UsersAndGroupsSearchResultSet. See UsersAndGroupsSearchResultSet.
usersV2multiple  PreviewSearch users with a given permission. The multiple datatype consists of (search: string, permissionFilter: Permission, skip: integer, limit: integer): Users!. See users.
viewerQueryPrefixstringyes Long-TermThe query prefix prepended to each search in the domain.