API Stability |
Preview
|
The restoreDeletedSearchDomain() GraphQL mutation is used to restore a deleted search domain. The purpose of this is to be able to restore a deleted search domain even though its limit has been deleted as well, by specifying a new limit to use instead.
Syntax
Below is the syntax for the restoreDeletedSearchDomain() mutation field:
restoreDeletedSearchDomain(
input: RestoreDeletedSearchDomainInput!
): SearchDomain!
Below is an example of how this mutation field might be used:
mutation {
restoreDeletedSearchDomain( input: {
id: "wBgIbgiv5ooicvHR8Ydt7YJ2"
} )
{ name }
}
{
"data": {
"restoreDeletedSearchDomain": {
"name": "OurStuff"
}
}
}
Given Datatypes
For RestoreDeletedSearchDomainInput, there are only a couple of parameters. They're described below:
Table: RestoreDeletedSearchDomainInput
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: Jan 31, 2025 | |||||
fallbackLimitId | string | Preview | The unique identifier of the limit to use for the search domain if the original limit no longer exists. | ||
id | string | yes | Preview | The unique identifier of the search domain. |
Returned Datatypes
For SearchDomain, there are several parameters. They're described in the table here:
Table: SearchDomain
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 27, 2025 | |||||
action | multiple | yes | Long-Term | A saved action. The multiple datatype consists of (id: string): Action. See Action . | |
actions | Action | yes | Long-Term | A list of saved actions. See Action . | |
aggregateAlert | multiple | yes | Long-Term | A saved aggregate alert. The multiple datatype consists of (id: string): AggregateAlert. See AggregateAlert . | |
aggregateAlerts | [AggregateAlert ] | yes | Long-Term | A list of saved aggregate alerts. See AggregateAlert . | |
alert | multiple | yes | Long-Term | A saved alert. The multiple datatype consists of (id: string): Alert. See alert . | |
alerts | [alert ] | yes | Long-Term | Saved alerts. See alert . | |
allowedViewActions | [ViewAction ] | yes | Long-Term | Returns the all actions the user is allowed to perform on the view. See ViewAction . | |
automaticSearch | boolean | yes | Long-Term | Whether to execute automatically the default search query. | |
availablePackages | multiple | yes | Long-Term | Returns 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 . | |
dashboard | multiple | yes | Long-Term | The default or initial Dashboard to use. The multiple datatype consists of (id: string): Dashboard. See Dashboard ). | |
dashboards | [Dashboard ] | yes | Long-Term | All dashboards available on the view. See Dashboard . | |
defaultQuery | savedQuery | yes | Long-Term | The default query used for the search domain when none is selected. See savedQuery . | |
deletedDate | long | Long-Term | The point in time the search domain was marked for deletion. | ||
description | string | Long-Term | A description of the search domain. | ||
fileFieldSearch | multiple | yes | Long-Term | Used to search fields in a CSV or JSON file. The multiple datatype consists of fileFieldSearch(fileName: string, fieldName: string, prefixFilter: string, valueFilters: [FileFieldFilterType], fieldsToInclude: [string], maxEntries: integer): [[DictionaryEntryType]]. See FileFieldFilterType and DictionaryEntryType . | |
files | [File ] | yes | Long-Term | Files belonging to the search domain. See File . | |
filterAlert | multiple | yes | Long-Term | A saved filter alert. The multiple datatype consists of (id: string): FilterAlert. See FilterAlert . | |
filterAlerts | [FilterAlert ] | yes | Long-Term | Saved filter alerts. See FilterAlert . | |
groups | [group ] | yes | Long-Term | Groups with assigned roles. See group . | |
hasPackageInstalled | multiple | yes | Long-Term | Whether there is an installed package. The multiple datatype consists of (packageId: VersionedPackageSpecifier): boolean. VersionedPackageSpecifier is a scalar. | |
id | string | yes | Long-Term | The unique identifier for the search domain. | |
installedPackages | [PackageInstallation ] | yes | Long-Term | List packages installed on a specific view or repository. See PackageInstallation . | |
interactions | [ViewInteraction ] | yes | Long-Term | All interactions defined on the view. See ViewInteraction . | |
isActionAllowed | multiple | yes | Long-Term | Whether the current user is allowed to perform the action. The multiple datatype consists of (action: ViewAction): boolean. See ViewAction . | |
isStarred | boolean | yes | Long-Term | Whether the search domain is highlighted with a star. | |
name | RepoOrViewName | yes | Long-Term | The name of the search domain. RepoOrViewName is a scalar. | |
packageV2 | multiple | yes | Long-Term | Returns a specific version of a package given a package version. The multiple datatype consists of (packageId: VersionedPackageSpecifier): Package2. VersionedPackageSpecifier is a scalar value. See Package2 . | |
permanentlyDeletedAt | long | Long-Term | The point in time the search domain will not be restorable anymore. | ||
recentQueriesV2 | [RecentQuery ] | yes | Long-Term | All recent queries for the search domain. See RecentQuery . | |
reposExcludedInSearchLimit | [string] | yes | Long-Term | Repositories not part of the search limitation. | |
resource | string | yes | Short-Term | The resource identifier for the search domain. | |
savedQueries | [savedQuery ] | yes | Long-Term | The saved queries. See savedQuery . | |
savedQuery | multiple | yes | Long-Term | A saved query. The multiple datatype consists of (id: string): SavedQuery. savedQuery ). | |
scheduledReport | multiple | yes | Long-Term | A saved scheduled report. The multiple datatype consists of (id: string): ScheduledReport. See scheduledReport . | |
scheduledReports | [scheduledReport ] | yes | Long-Term | Saved scheduled reports. See scheduledReport . | |
scheduledSearch | multiple | yes | Long-Term | A saved scheduled search. The multiple datatype consists of (id: string): ScheduledSearch. See scheduledSearch ). | |
scheduledSearches | [scheduledSearch ] | yes | Long-Term | The scheduled searches to use with the search domain. See scheduledSearch . | |
searchLimitedMs | long | Long-Term | Limit in milliseconds to which searches should are limited. | ||
starredFields | [string] | yes | Long-Term | All fields in the search domain to mark with a star. | |
tags | [string] | yes | Long-Term | All tags from all datasources. | |
users | [User ] | yes | Long-Term | Users who have access to the search domain. See User . | |
usersandgroups | multiple | yes | Long-Term | Users and groups associated with the search domain. The multiple datatype consists of (search: string, skip: integer, limit: integer): UsersAndGroupsSearchResultSet. See UsersAndGroupsSearchResultSet . | |
usersV2 | multiple | yes | Preview | Search users with a given permission, whose email or name matches this search string. The multiple datatype consists of (search: string, permissionFilter: Permission, skip: integer, limit: integer): Users. See | |
viewerQueryPrefix | string | yes | Long-Term | The query prefix prepended to each search in this domain. |